diff --git a/hearthstone/__tests__/testUtils/promiseUtils.ts b/hearthstone/__tests__/testUtils/promiseUtils.ts new file mode 100644 index 00000000..aea550bd --- /dev/null +++ b/hearthstone/__tests__/testUtils/promiseUtils.ts @@ -0,0 +1,2 @@ +export const spyResolves = (returnValue: any) => jest.fn(() => Promise.resolve(returnValue)); +export const spyRejects = (error?: any) => jest.fn(() => Promise.reject(error)); \ No newline at end of file