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' })), );