From 964eb902f69ea11cd186a9f495285c3739f723ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Honor=C3=A9?= Date: Mon, 9 Dec 2024 13:09:19 +0000 Subject: [PATCH] - --- handlers/ticket-tailor-webhook/test/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/ticket-tailor-webhook/test/index.test.ts b/handlers/ticket-tailor-webhook/test/index.test.ts index 4588de064c..b8897653ad 100644 --- a/handlers/ticket-tailor-webhook/test/index.test.ts +++ b/handlers/ticket-tailor-webhook/test/index.test.ts @@ -58,7 +58,7 @@ test('calls create guest account for new email addresses', async () => { test('no call to create guest account for an existing email addresses', async () => { jest.useFakeTimers().setSystemTime(new Date(validEpochSeconds * 1000)); //Date works in Epoch milli - fetchMock.mock( + fetchMock.route( `https://idapi.code.dev-theguardian.com/user/type/${emailAddress}`, new Response(JSON.stringify({ userType: 'current' })), );