Skip to content

Commit

Permalink
Fixed unit test for invalid value of trim-border param
Browse files Browse the repository at this point in the history
  • Loading branch information
dooman87 committed Dec 22, 2023
1 parent 7587157 commit 3b85d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions img/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,9 @@ func TestService_TrimBorder(t *testing.T) {

testCases := []test.TestCase{
{
Url: "http://localhost/img/http%3A%2F%2Fsite.com/img.png/fit?trim-border=abc",
Url: "http://localhost/img/http%3A%2F%2Fsite.com/img.png/fit?size=50x50&trim-border=abc",
ExpectedCode: http.StatusBadRequest,
Description: "Source image URL is required",
Description: "trim-border param value is invalid",
},
}

Expand Down

0 comments on commit 3b85d0d

Please sign in to comment.