@@ -3,7 +3,7 @@ import { http, HttpResponse } from 'msw';
33
44import { withQueryClient , withRouter } from '@navikt/fp-storybook-utils' ;
55
6- import { FpFordelUrl } from '../data/journalføringApi' ;
6+ import { FpmottakUrl } from '../data/journalføringApi' ;
77import type { Journalpost , JournalpostTilstand } from '../typer/journalpostTsType' ;
88import { erEndeligJournalført } from '../utils/journalpostTilstandUtils' ;
99import { OppgaveJournalføringIndex } from './OppgaveJournalføringIndex' ;
@@ -116,7 +116,7 @@ export const ViseOppgaverIListe: Story = {
116116 parameters : {
117117 msw : {
118118 handlers : [
119- http . get ( FpFordelUrl . ALLE_JOURNAL_OPPGAVER , ( ) =>
119+ http . get ( FpmottakUrl . ALLE_JOURNAL_OPPGAVER , ( ) =>
120120 HttpResponse . json ( [
121121 {
122122 journalpostId : '12345125' ,
@@ -153,14 +153,14 @@ export const ViseOppgaverIListe: Story = {
153153 } ,
154154 ] ) ,
155155 ) ,
156- http . get ( FpFordelUrl . HENT_JOURNALPOST_DETALJER , ( ) =>
156+ http . get ( FpmottakUrl . HENT_JOURNALPOST_DETALJER , ( ) =>
157157 HttpResponse . json ( getDetaljertJournalpostMal ( true , 'MOTTATT' ) ) ,
158158 ) ,
159- http . post ( FpFordelUrl . FERDIGSTILL_JOURNALFØRING , ( ) => HttpResponse . json ( { saksnummer : '12345678' } ) ) ,
160- http . post ( FpFordelUrl . HENT_BRUKER , ( ) =>
159+ http . post ( FpmottakUrl . FERDIGSTILL_JOURNALFØRING , ( ) => HttpResponse . json ( { saksnummer : '12345678' } ) ) ,
160+ http . post ( FpmottakUrl . HENT_BRUKER , ( ) =>
161161 HttpResponse . json ( { navn : 'Søker Søkersen' , fødselsnummer : '15529115072' } ) ,
162162 ) ,
163- http . post ( FpFordelUrl . OPPDATER_MED_BRUKER , ( ) =>
163+ http . post ( FpmottakUrl . OPPDATER_MED_BRUKER , ( ) =>
164164 HttpResponse . json ( getDetaljertJournalpostMal ( true , 'MOTTATT' ) ) ,
165165 ) ,
166166 ] ,
@@ -172,7 +172,7 @@ export const ViseOppgaverUtenBruker: Story = {
172172 parameters : {
173173 msw : {
174174 handlers : [
175- http . get ( FpFordelUrl . ALLE_JOURNAL_OPPGAVER , ( ) =>
175+ http . get ( FpmottakUrl . ALLE_JOURNAL_OPPGAVER , ( ) =>
176176 HttpResponse . json ( [
177177 {
178178 journalpostId : '12345125' ,
@@ -209,14 +209,14 @@ export const ViseOppgaverUtenBruker: Story = {
209209 } ,
210210 ] ) ,
211211 ) ,
212- http . get ( FpFordelUrl . HENT_JOURNALPOST_DETALJER , ( ) =>
212+ http . get ( FpmottakUrl . HENT_JOURNALPOST_DETALJER , ( ) =>
213213 HttpResponse . json ( getDetaljertJournalpostMal ( false , 'MOTTATT' ) ) ,
214214 ) ,
215- http . post ( FpFordelUrl . FERDIGSTILL_JOURNALFØRING , ( ) => HttpResponse . json ( { saksnummer : '12345678' } ) ) ,
216- http . post ( FpFordelUrl . HENT_BRUKER , ( ) =>
215+ http . post ( FpmottakUrl . FERDIGSTILL_JOURNALFØRING , ( ) => HttpResponse . json ( { saksnummer : '12345678' } ) ) ,
216+ http . post ( FpmottakUrl . HENT_BRUKER , ( ) =>
217217 HttpResponse . json ( { navn : 'Søker Søkersen' , fødselsnummer : '15529115072' } ) ,
218218 ) ,
219- http . post ( FpFordelUrl . OPPDATER_MED_BRUKER , ( ) =>
219+ http . post ( FpmottakUrl . OPPDATER_MED_BRUKER , ( ) =>
220220 HttpResponse . json ( getDetaljertJournalpostMal ( true , 'MOTTATT' ) ) ,
221221 ) ,
222222 ] ,
@@ -228,11 +228,11 @@ export const SøkeOppJournalpostSomLiggerPåAnnenSak: Story = {
228228 parameters : {
229229 msw : {
230230 handlers : [
231- http . get ( FpFordelUrl . ALLE_JOURNAL_OPPGAVER , ( ) => HttpResponse . json ( [ ] ) ) ,
232- http . get ( FpFordelUrl . HENT_JOURNALPOST_DETALJER , ( ) =>
231+ http . get ( FpmottakUrl . ALLE_JOURNAL_OPPGAVER , ( ) => HttpResponse . json ( [ ] ) ) ,
232+ http . get ( FpmottakUrl . HENT_JOURNALPOST_DETALJER , ( ) =>
233233 HttpResponse . json ( getDetaljertJournalpostMal ( true , 'JOURNALFOERT' ) ) ,
234234 ) ,
235- http . post ( FpFordelUrl . FERDIGSTILL_JOURNALFØRING , ( ) => HttpResponse . json ( { saksnummer : '12345678' } ) ) ,
235+ http . post ( FpmottakUrl . FERDIGSTILL_JOURNALFØRING , ( ) => HttpResponse . json ( { saksnummer : '12345678' } ) ) ,
236236 ] ,
237237 } ,
238238 } ,
@@ -242,9 +242,9 @@ export const FinnerIkkeJournalpostVedSøkOgIngenOppgaver: Story = {
242242 parameters : {
243243 msw : {
244244 handlers : [
245- http . get ( FpFordelUrl . ALLE_JOURNAL_OPPGAVER , ( ) => HttpResponse . json ( [ ] ) ) ,
246- http . get ( FpFordelUrl . HENT_JOURNALPOST_DETALJER , ( ) => HttpResponse . json ( undefined ) ) ,
247- http . post ( FpFordelUrl . FERDIGSTILL_JOURNALFØRING , ( ) => HttpResponse . json ( { saksnummer : '12345678' } ) ) ,
245+ http . get ( FpmottakUrl . ALLE_JOURNAL_OPPGAVER , ( ) => HttpResponse . json ( [ ] ) ) ,
246+ http . get ( FpmottakUrl . HENT_JOURNALPOST_DETALJER , ( ) => HttpResponse . json ( undefined ) ) ,
247+ http . post ( FpmottakUrl . FERDIGSTILL_JOURNALFØRING , ( ) => HttpResponse . json ( { saksnummer : '12345678' } ) ) ,
248248 ] ,
249249 } ,
250250 } ,
@@ -254,13 +254,13 @@ export const IngenOppgaver: Story = {
254254 parameters : {
255255 msw : {
256256 handlers : [
257- http . get ( FpFordelUrl . ALLE_JOURNAL_OPPGAVER , ( ) => HttpResponse . json ( [ ] ) ) ,
258- http . get ( FpFordelUrl . HENT_JOURNALPOST_DETALJER , ( ) => HttpResponse . json ( undefined ) ) ,
259- http . post ( FpFordelUrl . FERDIGSTILL_JOURNALFØRING , ( ) => HttpResponse . json ( { saksnummer : '12345678' } ) ) ,
260- http . post ( FpFordelUrl . HENT_BRUKER , ( ) =>
257+ http . get ( FpmottakUrl . ALLE_JOURNAL_OPPGAVER , ( ) => HttpResponse . json ( [ ] ) ) ,
258+ http . get ( FpmottakUrl . HENT_JOURNALPOST_DETALJER , ( ) => HttpResponse . json ( undefined ) ) ,
259+ http . post ( FpmottakUrl . FERDIGSTILL_JOURNALFØRING , ( ) => HttpResponse . json ( { saksnummer : '12345678' } ) ) ,
260+ http . post ( FpmottakUrl . HENT_BRUKER , ( ) =>
261261 HttpResponse . json ( { navn : 'Søker Søkersen' , fødselsnummer : '15529115072' } ) ,
262262 ) ,
263- http . post ( FpFordelUrl . OPPDATER_MED_BRUKER , ( ) =>
263+ http . post ( FpmottakUrl . OPPDATER_MED_BRUKER , ( ) =>
264264 HttpResponse . json ( getDetaljertJournalpostMal ( true , 'MOTTATT' ) ) ,
265265 ) ,
266266 ] ,
0 commit comments