Skip to content

Commit

Permalink
Add scenario when invalid default params is being set
Browse files Browse the repository at this point in the history
  • Loading branch information
baskarap committed Sep 16, 2019
1 parent e8b7ffe commit 31f9474
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/handler/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ func TestGetParams(t *testing.T) {
defaultParams: "foo=foo",
expectedRes: &map[string]string{"foo": "foo,bar"},
},
{
values: map[string][]string{"foo": {"bar"}},
defaultParams: "invalid",
expectedRes: &map[string]string{"foo": "bar"},
},
}
for _, c := range cases {
v := config.Viper()
Expand Down

0 comments on commit 31f9474

Please sign in to comment.