Skip to content

Commit

Permalink
Legger til mock for saksside-api
Browse files Browse the repository at this point in the history
  • Loading branch information
ebelegu committed Nov 28, 2024
1 parent 6785222 commit 79790a5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/mocks/brukerApi/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,16 @@ export const sakstyperResolver = (sakstyper: Merkelapp[]) =>

return HttpResponse.json({ errors, data });
});

export const hentSakByIdResolver = (saker: Sak[]) =>
graphql.query('HENT_SAK_ID', async ({ query, variables }) => {
const sak = saker[0];
return HttpResponse.json({
data: {
sakById: {
sak,
feilAltinn: false,
},
}
});
} );

0 comments on commit 79790a5

Please sign in to comment.