Skip to content

Commit

Permalink
fix: add test case for ListOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
wowq committed Jun 20, 2022
1 parent 3a606e3 commit 8302fa6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scm/driver/gitlab/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ func Test_encodeListOptions(t *testing.T) {
opts := scm.ListOptions{
Page: 10,
Size: 30,
Sort: "asc",
}
want := "page=10&per_page=30"
want := "page=10&per_page=30&sort=asc"
got := encodeListOptions(&opts)
if got != want {
t.Errorf("Want encoded list options %q, got %q", want, got)
Expand Down

0 comments on commit 8302fa6

Please sign in to comment.