Skip to content

Commit fdfd5aa

Browse files
committed
fix(test): fix test case style
1 parent 19eaac4 commit fdfd5aa

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

cmd/auth_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ func TestWhoamiAll(t *testing.T) {
208208
fmt.Fprintf(w, `{
209209
"email": "test@example.com",
210210
"username": "test",
211-
"first_name": "",
212-
"last_name": "",
211+
"first_name": "test",
212+
"last_name": "test",
213213
"is_superuser": true,
214214
"is_staff": true,
215215
"groups": [],
@@ -222,17 +222,17 @@ func TestWhoamiAll(t *testing.T) {
222222

223223
err = cmdr.Whoami(true)
224224
assert.NoErr(t, err)
225-
expected := fmt.Sprintf(`ID: 0
225+
expected := `ID: 0
226226
Username: test
227227
Email: test@example.com
228-
First Name:
229-
Last Name:
228+
First Name: test
229+
Last Name: test
230230
Last Login: 2016-09-12T22:15:26Z
231231
Is Superuser: true
232232
Is Staff: true
233233
Is Active: true
234234
Date Joined: 2015-09-12T22:15:26Z
235-
`)
235+
`
236236
assert.Equal(t, b.String(), expected, "output")
237237
}
238238

0 commit comments

Comments
 (0)