Skip to content

Commit

Permalink
Legger til saksside-mock på alle scenarioer
Browse files Browse the repository at this point in the history
  • Loading branch information
ebelegu committed Nov 28, 2024
1 parent 79790a5 commit a3d4a64
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
hentNotifikasjonerResolver,
hentSakerResolver,
sakstyperResolver,
hentSakByIdResolver,
} from './brukerApi/resolvers';

/**
Expand Down Expand Up @@ -220,4 +221,5 @@ export const handlers = [
hentKalenderavtalerResolver([]),
hentNotifikasjonerResolver([]),
sakstyperResolver([]),
hentSakByIdResolver([])
];
2 changes: 2 additions & 0 deletions src/mocks/scenarios/dagligLederScenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
hentNotifikasjonerResolver,
hentSakerResolver,
sakstyperResolver,
hentSakByIdResolver,
} from '../brukerApi/resolvers';
import { alleSaker } from '../brukerApi/alleSaker';
import { alleKalenderavtaler } from '../brukerApi/alleKalenderavtaler';
Expand Down Expand Up @@ -146,4 +147,5 @@ export const dagligLederScenario = [
sakstyperResolver(alleSaker.map(({ merkelapp }) => merkelapp as Merkelapp)),
hentKalenderavtalerResolver(alleKalenderavtaler),
hentNotifikasjonerResolver(alleNotifikasjoner),
hentSakByIdResolver(alleSaker),
];
3 changes: 2 additions & 1 deletion src/mocks/scenarios/nærmesteLederScenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { faker } from '@faker-js/faker';
import { fromEntries } from '../../utils/Record';
import {
hentKalenderavtalerResolver,
hentNotifikasjonerResolver,
hentNotifikasjonerResolver, hentSakByIdResolver,
hentSakerResolver,
sakstyperResolver,
} from '../brukerApi/resolvers';
Expand Down Expand Up @@ -69,4 +69,5 @@ export const nærmesteLederScenario = [
sakstyperResolver(nærmesteLederSaker.map(({ merkelapp }) => merkelapp as Merkelapp)),
hentNotifikasjonerResolver(nærmesteLederNotifikasjoner),
hentKalenderavtalerResolver(nærmesteLederKalenderavtaler),
hentSakByIdResolver(nærmesteLederSaker),
];
3 changes: 2 additions & 1 deletion src/mocks/scenarios/regnskapsforerScenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { alleSaker } from '../brukerApi/alleSaker';
import { Merkelapp } from '../brukerApi/alleMerkelapper';
import {
hentKalenderavtalerResolver,
hentNotifikasjonerResolver,
hentNotifikasjonerResolver, hentSakByIdResolver,
hentSakerResolver,
sakstyperResolver,
} from '../brukerApi/resolvers';
Expand Down Expand Up @@ -82,4 +82,5 @@ export const regnskapsforerScenario = [
sakstyperResolver(regnskapsførerSaker.map(({ merkelapp }) => merkelapp as Merkelapp)),
hentKalenderavtalerResolver(regnskapsførerKalenderavtaler),
hentNotifikasjonerResolver(regnskapsførerNotifikasjoner),
hentSakByIdResolver(regnskapsførerSaker),
];

0 comments on commit a3d4a64

Please sign in to comment.