File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { Innsynsdata } from '../../../src/types/InnsynData';
3
3
import { søkerMockData } from '../mockdata/søker.mock' ;
4
4
import { søknaderMockData } from '../mockdata/søknader.mock' ;
5
5
import { PleietrengendeMedSak } from '../../../src/server/api-models/PleietrengendeMedSakSchema' ;
6
+ import { defaultAppStatus } from '../../../src/pages/api/appStatus.api' ;
6
7
7
8
const sak : PleietrengendeMedSak = {
8
9
pleietrengende : {
@@ -30,6 +31,7 @@ export const setupMockRoutes = async (page: any) => {
30
31
await page . route ( '**/innsynsdata' , async ( route ) => {
31
32
const response : Innsynsdata = {
32
33
saker : [ sak ] ,
34
+ appStatus : defaultAppStatus ,
33
35
harSak : true ,
34
36
søker : søkerMockData as any ,
35
37
mellomlagring : { } ,
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ import mockSøker from '../../../api-mock-server/mockdata/soknader.json';
4
4
import { Søker } from '../../server/api-models/SøkerSchema' ;
5
5
import { InnsendtSøknad } from '../../types/Søknad' ;
6
6
import dayjs from 'dayjs' ;
7
+ import { defaultAppStatus } from '../../pages/api/appStatus.api' ;
7
8
8
9
export const withInnsynsdata = ( Story ) => (
9
10
< InnsynsdataContextProvider
10
11
innsynsdata = { {
11
12
saker : [ { saksbehandlingsFrist : dayjs ( ) . add ( 5 , 'weeks' ) . toDate ( ) } as any ] ,
13
+ appStatus : defaultAppStatus ,
12
14
harSak : true ,
13
15
søker : mockSøker as any as Søker ,
14
16
mellomlagring : { } ,
You can’t perform that action at this time.
0 commit comments