Skip to content

Commit

Permalink
chore: Add 'ok' field to github api mock
Browse files Browse the repository at this point in the history
  • Loading branch information
LizBaker committed Jun 17, 2021
1 parent f6d52b9 commit f5b37ac
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ global.process.exit = jest.fn();
// Helper function to mock a response from Github
const mockGithubResponse = (result) => {
fetch.mockResolvedValueOnce({
ok: true,
json: jest.fn(() => Promise.resolve(result)),
headers: { get: jest.fn() },
});
Expand Down

0 comments on commit f5b37ac

Please sign in to comment.