Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Commit

Permalink
fix: missing mock responses
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcaballero committed May 10, 2023
1 parent 44f39ab commit b5f4b26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,7 @@ describe('post()', () => {
});

it('request body type when optional', async() => {
fetchMocker.mockResponse(() => ({ status: 201, body: '{}' }));
const client = createClient<paths>();

// expect error on wrong body type
Expand All @@ -370,6 +371,7 @@ describe('post()', () => {
})

it('request body type when optional inline', async() => {
fetchMocker.mockResponse(() => ({ status: 201, body: '{}' }));
const client = createClient<paths>();

// expect error on wrong body type
Expand Down

0 comments on commit b5f4b26

Please sign in to comment.