From 61e7e8db4fa25ef3e0d70856215c3bf0823b9e44 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Mon, 1 Apr 2019 14:24:47 +0800 Subject: [PATCH] Fix test in HTTPClientMock.test.ts --- packages/client/src/test-utils/HTTPClientMock.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/test-utils/HTTPClientMock.test.ts b/packages/client/src/test-utils/HTTPClientMock.test.ts index df3f1aa..a56cef9 100644 --- a/packages/client/src/test-utils/HTTPClientMock.test.ts +++ b/packages/client/src/test-utils/HTTPClientMock.test.ts @@ -30,8 +30,9 @@ describe('HTTPClientMock', () => { {method: 'get', url: '/test'}, {error: 'Internal'}, 500) + const errorPromise = http.get('/test') const waitPromise = http.wait() - const error = await getError(http.get('/test')) + const error = await getError(errorPromise) const error2 = await getError(waitPromise) expect(error.message).toEqual('HTTP Status: 500') expect(error2).toBe(error)