summaryrefslogtreecommitdiffstats
path: root/resources/resource_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/resource_test.go')
-rw-r--r--resources/resource_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/resource_test.go b/resources/resource_test.go
index be2706e45..af7867eb1 100644
--- a/resources/resource_test.go
+++ b/resources/resource_test.go
@@ -16,7 +16,6 @@ package resources
import (
"fmt"
"math/rand"
- "path"
"path/filepath"
"strings"
"testing"
@@ -45,9 +44,8 @@ func TestGenericResourceWithLinkFacory(t *testing.T) {
assert := require.New(t)
spec := newTestResourceSpec(assert)
- factory := func(s string) string {
- return path.Join("/foo", s)
- }
+ factory := newTargetPaths("/foo")
+
r := spec.newGenericResource(nil, factory, nil, "/a/foo.css", "foo.css", media.CSSType)
assert.Equal("https://example.com/foo/foo.css", r.Permalink())