Skip to content

Commit

Permalink
run make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonc committed Dec 7, 2022
1 parent e008570 commit df0694c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tfe_test.go
Expand Up @@ -119,14 +119,14 @@ func Test_unmarshalResponse(t *testing.T) {
func Test_EncodeQueryParams(t *testing.T) {
t.Run("with no listOptions and therefore no include field defined", func(t *testing.T) {
urlVals := map[string][]string{
"include": []string{},
"include": {},
}
requestURLquery := encodeQueryParams(urlVals)
assert.Equal(t, requestURLquery, "")
})
t.Run("with listOptions setting multiple include options", func(t *testing.T) {
urlVals := map[string][]string{
"include": []string{"workspace", "cost_estimate"},
"include": {"workspace", "cost_estimate"},
}
requestURLquery := encodeQueryParams(urlVals)
assert.Equal(t, requestURLquery, "include=workspace%2Ccost_estimate")
Expand Down

0 comments on commit df0694c

Please sign in to comment.