Skip to content

Commit

Permalink
[splendo#9] Added testUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
corrado4eyes committed Dec 3, 2019
1 parent 97d87ab commit 0974da8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hearthstone/__tests__/testUtils/promiseUtils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const spyResolves = (returnValue: any) => jest.fn(() => Promise.resolve(returnValue));
export const spyRejects = (error?: any) => jest.fn(() => Promise.reject(error));

0 comments on commit 0974da8

Please sign in to comment.