-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(clients): make POST body related to the endpoint, assert body in …
…tests (#849)
- Loading branch information
Showing
19 changed files
with
142 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
clients/algoliasearch-client-javascript/packages/requester-browser-xhr/src/echoRequester.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { createEchoRequester } from '@algolia/client-common'; | ||
import type { EchoRequester } from '@algolia/client-common'; | ||
import type { Requester } from '@algolia/client-common'; | ||
|
||
export function echoRequester(status: number = 200): EchoRequester { | ||
export function echoRequester(status: number = 200): Requester { | ||
return createEchoRequester({ getURL: (url: string) => new URL(url), status }); | ||
} |
4 changes: 2 additions & 2 deletions
4
clients/algoliasearch-client-javascript/packages/requester-node-http/src/echoRequester.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { URL } from 'url'; | ||
|
||
import { createEchoRequester } from '@algolia/client-common'; | ||
import type { EchoRequester } from '@algolia/client-common'; | ||
import type { Requester } from '@algolia/client-common'; | ||
|
||
export function echoRequester(status: number = 200): EchoRequester { | ||
export function echoRequester(status: number = 200): Requester { | ||
return createEchoRequester({ getURL: (url: string) => new URL(url), status }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.