Skip to content

Commit

Permalink
test: remove test with 100 status
Browse files Browse the repository at this point in the history
  • Loading branch information
nandi95 committed Apr 12, 2024
1 parent 117d23c commit ca26449
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Services/ApiResponseHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class ApiResponseHandler implements HandlesApiResponse {

if (method && ['OPTIONS', 'HEAD', 'TRACE', 'CONNECT'].includes(method)) {
// the user might just want the headers or debug info
// so just return the whole response
// so return the whole response
return response;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Calliope/Concerns/CallsApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ describe('CallsApi', () => {
});

it('should return undefined if the response from the handler is undefined', async () => {
fetchMock.mockResponseOnce(undefined, { status: 100 });
fetchMock.mockResponseOnce(undefined, { status: 204 });
await expect(caller.call('GET')).resolves.toBeUndefined();
});

Expand Down
3 changes: 2 additions & 1 deletion tests/Services/ApiResponseHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ describe('ApiResponseHandler', () => {

it.each([
[204, 'has no content'],
[101, 'is an informational response'],
// waiting for https://github.com/nodejs/undici/issues/197
// [100, 'is an informational response'],
[302, 'as a redirect response']
])('should return undefined if the response (%s) %s', async (status) => {
fetchMock.mockResponseOnce(undefined, { status });
Expand Down

0 comments on commit ca26449

Please sign in to comment.