diff options
Diffstat (limited to 'resource/resource_test.go')
-rw-r--r-- | resource/resource_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resource/resource_test.go b/resource/resource_test.go index e699e6f3f..b76f0a604 100644 --- a/resource/resource_test.go +++ b/resource/resource_test.go @@ -93,7 +93,7 @@ func TestNewResourceFromFilenameSubPathInBaseURL(t *testing.T) { assert.Equal("/docs/a/b/logo.png", r.RelPermalink()) assert.Equal("https://example.com/docs/a/b/logo.png", r.Permalink()) img := r.(*Image) - assert.Equal(filepath.FromSlash("/a/b/logo.png"), img.targetFilename()) + assert.Equal(filepath.FromSlash("/a/b/logo.png"), img.targetFilenames()[0]) } |