Skip to content

Commit

Permalink
🐛 Fix a bug in the json response
Browse files Browse the repository at this point in the history
  • Loading branch information
DRFR0ST committed May 26, 2024
1 parent 1b4910d commit 623c85c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ export const mock = (request: Request | RegExp, options: MockOptions) => {
return Promise.resolve({
status: 200,
ok: true,
// Return the mocked response.
json: () => Promise.resolve({ data: mockedRequest[1].data }),
json: () => Promise.resolve(mockedRequest[1].data),
})
};
}
Expand Down

0 comments on commit 623c85c

Please sign in to comment.