summaryrefslogtreecommitdiffstats
path: root/resources/image_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/image_test.go')
-rw-r--r--resources/image_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/image_test.go b/resources/image_test.go
index cca961ee0..e39e88992 100644
--- a/resources/image_test.go
+++ b/resources/image_test.go
@@ -28,6 +28,8 @@ import (
"testing"
"time"
+ "github.com/gohugoio/hugo/common/paths"
+
"github.com/spf13/afero"
"github.com/disintegration/gift"
@@ -145,7 +147,7 @@ func TestImageTransformFormat(t *testing.T) {
assertExtWidthHeight := func(img resource.Image, ext string, w, h int) {
c.Helper()
c.Assert(img, qt.Not(qt.IsNil))
- c.Assert(helpers.Ext(img.RelPermalink()), qt.Equals, ext)
+ c.Assert(paths.Ext(img.RelPermalink()), qt.Equals, ext)
c.Assert(img.Width(), qt.Equals, w)
c.Assert(img.Height(), qt.Equals, h)
}