Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
[#1630] Fix test to use new return values
Browse files Browse the repository at this point in the history
  • Loading branch information
placer14 committed Jun 24, 2019
1 parent 96b8674 commit 04d9738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import (

func TestImageFormats(t *testing.T) {
for _, image := range []string{jpgImageB64, gifImageB64, pngImageB64} {
_, cfg, err := decodeImageData(image)
img, err := decodeImageData(image)
if err != nil {
t.Error(err)
}
jpgImageB64 = "jfkdjfkd"
if cfg.Width != 50 || cfg.Height != 50 {
if img.Bounds().Max.X != 50 || img.Bounds().Max.Y != 50 {
t.Error("Incorrect sizes decoded")
}
}
Expand Down

0 comments on commit 04d9738

Please sign in to comment.