Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
b lager catch all routes for mock av opplysninger og profilering
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Jan 26, 2024
1 parent 445b751 commit cc2613c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/demo/setup-demo-mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ export const demo_handlers = [

msw_get(ER_STANDARD_INNSATSGRUPPE_URL, hentStandardInnsatsgruppe().standardInnsatsgruppe),
msw_get(ARBEIDSOKERPERIODER_URL, arbeidssokerperioderMock),
msw_get(OPPLYSNINGER_OM_ARBEIDSSOKER_URL, opplysningerOmArbeidssoker),
msw_get(PROFILERING_URL, profileringMock),
msw_get(`${OPPLYSNINGER_OM_ARBEIDSSOKER_URL}/*`, opplysningerOmArbeidssoker),
msw_get(`${PROFILERING_URL}/*`, profileringMock),
http.get(`${MELDEPLIKT_URL}/siste`, () => {
// eslint-disable-next-line no-restricted-globals
const valg = hentDemoState(DemoData.ARBEIDSSOKER_NESTE_PERIODE);
Expand Down
4 changes: 2 additions & 2 deletions src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@ export const handlers = [
msw_get(REAKTIVERING_URL, null, 204),
msw_get(ARBEIDSOKER_INNHOLD, arbeidssokerInnholdMock, 200),
msw_get(ARBEIDSOKERPERIODER_URL, arbeidssokerperioderMock, 200),
msw_get(OPPLYSNINGER_OM_ARBEIDSSOKER_URL, opplysningerOmArbeidssoker, 200),
msw_get(PROFILERING_URL, profileringMock, 200),
msw_get(`${OPPLYSNINGER_OM_ARBEIDSSOKER_URL}/*`, opplysningerOmArbeidssoker, 200),
msw_get(`${PROFILERING_URL}/*`, profileringMock, 200),
];

0 comments on commit cc2613c

Please sign in to comment.