Skip to content

Commit

Permalink
moved params to query
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulWahab3181 committed Feb 20, 2024
1 parent 75e9b89 commit 9a95a39
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions handlers/people_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,10 +368,7 @@ func TestGetListedPeople(t *testing.T) {
}

rctx := chi.NewRouteContext()
rctx.URLParams.Add("page", "1")
rctx.URLParams.Add("limit", "10")
rctx.URLParams.Add("languages", "typescript")
req, err := http.NewRequestWithContext(context.WithValue(context.Background(), chi.RouteCtxKey, rctx), http.MethodGet, "/", nil)
req, err := http.NewRequestWithContext(context.WithValue(context.Background(), chi.RouteCtxKey, rctx), http.MethodGet, "/?page=1&limit=10&languages=typescript", nil)
assert.NoError(t, err)

mockDb.On("GetListedPeople", mock.Anything).Return(expectedPeople)
Expand Down

0 comments on commit 9a95a39

Please sign in to comment.