From 0ef3ef65fbb355cde8a401a7368b53c75a67aeef Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Mon, 22 Jul 2024 18:08:18 +0100 Subject: [PATCH] Fix deprecated toBeCalledWith function call --- tests/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/index.test.ts b/tests/index.test.ts index ffa9015..874f129 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -122,7 +122,7 @@ describe('randomBunny', () => { expect(result.Error!.Code).toBe(ErrorCode.NoImageResultsFound); expect(result.Error!.Message).toBe(ErrorMessages.NoImageResultsFound); - expect(fetchMock).toBeCalledWith('https://reddit.com/r/rabbits/new.json?limit=100'); + expect(fetchMock).toHaveBeenCalledWith('https://reddit.com/r/rabbits/new.json?limit=100'); }); test('GIVEN randomSelect does NOT find a valid response, EXPECT failure result', async () => {