From 0ba2e48f25e6fe6c0be414097e143e125747a914 Mon Sep 17 00:00:00 2001 From: Win Date: Mon, 9 Sep 2024 17:26:55 +0700 Subject: [PATCH] MOL-401: update test cases --- processor/tests/mollie/profile.mollie.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/processor/tests/mollie/profile.mollie.spec.ts b/processor/tests/mollie/profile.mollie.spec.ts index b78e1a7..d4f7cda 100644 --- a/processor/tests/mollie/profile.mollie.spec.ts +++ b/processor/tests/mollie/profile.mollie.spec.ts @@ -43,7 +43,7 @@ describe('Test profile.mollie.ts', () => { }, }); - await expect(getProfile()).rejects.toThrow(errorMessage); + await expect(getProfile()).resolves.toThrow(errorMessage); }); it('should return unknown errors when fetching the profile', async () => { @@ -54,6 +54,6 @@ describe('Test profile.mollie.ts', () => { }, }); - await expect(getProfile()).rejects.toThrow(errorMessage); + await expect(getProfile()).resolves.toThrow(errorMessage); }); });