From c0c44e1127592922052cbe8486176de8900fb119 Mon Sep 17 00:00:00 2001 From: Rachel Carvalho Date: Tue, 16 Jan 2024 13:54:27 -0300 Subject: [PATCH] return empty object on rest 401 test --- .../strategies/__tests__/token-exchange/admin-client.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/shopify-app-remix/src/server/authenticate/admin/strategies/__tests__/token-exchange/admin-client.test.ts b/packages/shopify-app-remix/src/server/authenticate/admin/strategies/__tests__/token-exchange/admin-client.test.ts index 7155fc9f64..d3c6f5ff49 100644 --- a/packages/shopify-app-remix/src/server/authenticate/admin/strategies/__tests__/token-exchange/admin-client.test.ts +++ b/packages/shopify-app-remix/src/server/authenticate/admin/strategies/__tests__/token-exchange/admin-client.test.ts @@ -166,7 +166,7 @@ async function mockRestRequest(status = 401) { await mockExternalRequest({ request: requestMock, - response: new Response(undefined, {status}), + response: new Response('{}', {status}), }); return requestMock;