Skip to content

Commit

Permalink
Fix params test + add it to Checkin suite
Browse files Browse the repository at this point in the history
  • Loading branch information
brandur committed Mar 4, 2016
1 parent 7d56fd4 commit b845ffc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestParamsWithExtras(t *testing.T) {
}
}

func TestListParamsExpansion(t *testing.T) {
func TestCheckinListParamsExpansion(t *testing.T) {
testCases := []struct {
InitialBody url.Values
Expand []string
Expand All @@ -54,9 +54,9 @@ func TestListParamsExpansion(t *testing.T) {
ExpectedBody: url.Values{"foo": {"bar"}},
},
{
InitialBody: url.Values{"foo": {"bar"}},
InitialBody: url.Values{"foo": {"bar", "baz"}},
Expand: []string{"data", "data.foo"},
ExpectedBody: url.Values{"foo": {"bar"}, "expand[]": {"data", "data.foo"}},
ExpectedBody: url.Values{"foo": {"bar", "baz"}, "expand[]": {"data", "data.foo"}},
},
}

Expand Down

0 comments on commit b845ffc

Please sign in to comment.