Integration tests #71

Merged
konrad merged 66 commits from feature/integration-tests into master 2019-04-21 18:18:18 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit a5a6845081 - Show all commits

View File

@ -33,7 +33,7 @@ func TestUserList(t *testing.T) {
assert.Contains(t, rec.Body.String(), `user5`)
})
t.Run("Search for user3", func(t *testing.T) {
rec, err := newTestGetRequestWithUser(t, apiv1.UserList, &testuser1, map[string][]string{"s": []string{"user3"}})
rec, err := newTestGetRequestWithUser(t, apiv1.UserList, &testuser1, map[string][]string{"s": {"user3"}})
assert.NoError(t, err)
assert.Contains(t, rec.Body.String(), `user3`)
assert.NotContains(t, rec.Body.String(), `user1`)