Skip to content

Commit

Permalink
fix overwrite method
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Jun 7, 2024
1 parent 961e92c commit 029c9fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resigif_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,13 @@ func TestResize(t *testing.T) {
t.Parallel()

got, err := resigif.Resize(tt.args.ctx, mustOpenGif(t, tt.args.src), tt.args.width, tt.args.height, tt.args.opts...)
tt.assertion(t, err)
assert.Equal(t, mustOpenGif(t, tt.want), got)

if overWrite != nil && *overWrite {
mustEncodeGif(t, tt.want, got)
}

tt.assertion(t, err)
assert.Equal(t, mustOpenGif(t, tt.want), got)
})
}
}

0 comments on commit 029c9fb

Please sign in to comment.