mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
Some godoc adjustments and image struct renames
This commit is contained in:
parent
11047534e4
commit
fa80fe3c8a
23 changed files with 193 additions and 90 deletions
|
@ -29,6 +29,7 @@ import (
|
|||
"github.com/gohugoio/hugo/hugofs"
|
||||
|
||||
"github.com/gohugoio/hugo/media"
|
||||
"github.com/gohugoio/hugo/resources/images"
|
||||
"github.com/gohugoio/hugo/resources/internal"
|
||||
|
||||
"github.com/gohugoio/hugo/helpers"
|
||||
|
@ -361,7 +362,7 @@ func TestTransform(t *testing.T) {
|
|||
c.Assert(err, qt.IsNil)
|
||||
c.Assert(tr.MediaType(), eq, media.PNGType)
|
||||
|
||||
img, ok := tr.(resource.Image)
|
||||
img, ok := tr.(images.ImageResource)
|
||||
c.Assert(ok, qt.Equals, true)
|
||||
|
||||
c.Assert(img.Width(), qt.Equals, 75)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue