-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hent arbeidsgivers vurderinger for stilling (#16)
* Hent arbeidsgivers vurderinger for stilling * Lagt til backend-proxy, og ikke-fungerende mock * setter opp mock * Deploy branch til dev * Legg på outbound policy for kall mot presenterte kandidate-api * Logg ut bedre vurderinger response * Flytt kall mot vurderinger lenger inn slik at vi kan sjekke stillingsid * Legg til dependency array for useffect for vurderinger * Lag mocken for vuderinger slik at den famnger alle kall, og ikke er knyttet til en spesifikk stillingsId * Ta bort debuglogging --------- Co-authored-by: frodank <[email protected]>
- Loading branch information
Showing
10 changed files
with
97 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { rest } from 'msw'; | ||
import { api } from '../../src/felles/api'; | ||
|
||
export const presenterteKandidaterApiMock = [ | ||
rest.get( | ||
`${api.presenterteKandidaterApi}/kandidatliste/:stillingsId/vurdering`, | ||
(_, res, ctx) => res(ctx.json(mockArbeidsgiversVurderinger)) | ||
), | ||
]; | ||
const mockArbeidsgiversVurderinger: any = [ | ||
{ | ||
aktørId: '123', | ||
vurdering: 'abc', | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters