Skip to content

Commit

Permalink
return empty object on rest 401 test
Browse files Browse the repository at this point in the history
  • Loading branch information
rachel-carvalho authored and rezaansyed committed Jan 17, 2024
1 parent 6b9da3e commit c0c44e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async function mockRestRequest(status = 401) {

await mockExternalRequest({
request: requestMock,
response: new Response(undefined, {status}),
response: new Response('{}', {status}),
});

return requestMock;
Expand Down

0 comments on commit c0c44e1

Please sign in to comment.