We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const listTracker = authInterceptor .get('/users') .with({ searchParams: { name: nameToFilter }, exact: true }) .respond({ status: 200, body: [user], });
The text was updated successfully, but these errors were encountered:
feat: request match by search params (#13) (#99)
781364d
### Features - [#zimic] Added support to restricting request trackers by exact or partial search params. - [#zimic] Included `HttpHeadersInit` and `HttpSearchParamsInit` to the type exports. ```ts const user = users[0]; const listTracker = authInterceptor .get('/users') .with({ searchParams: { name: user.name }, }) .respond({ status: 200, body: [user], }); const response = await listUsers({ name: user.name }); expect(response.status).toBe(200); const returnedUsers = (await response.json()) as User[]; expect(returnedUsers).toEqual([user]); ``` Closes #13.
diego-aquino
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: