Skip to content

Commit

Permalink
Legge til mock for sanity i test
Browse files Browse the repository at this point in the history
  • Loading branch information
frodehansen2 committed Dec 11, 2023
1 parent a9f6e72 commit 96dbaeb
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ export const setupMockRoutes = async (page: any) => {
await page.route('https://login.nav.no/**', async (route) => {
await route.fulfill({ status: 200 });
});
await page.route('*.api.sanity.io/**', async (route) => {
await route.fulfill({ status: 200 });
});
await page.route('https://www.nav.no/person/nav-dekoratoren-api/auth', async (route) => {
await route.fulfill({ status: 200 });
});
Expand Down

0 comments on commit 96dbaeb

Please sign in to comment.