Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
nesteSteg velger random element fra liste
Browse files Browse the repository at this point in the history
  • Loading branch information
ebelegu committed May 28, 2024
1 parent 49ac726 commit 9254fef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion brukerapi-mock/notifikasjonMockMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ const mocks = () => ({
tekst: casual.random_element(['Mottatt', 'Under behandling', 'Utbetalt']),
tidspunkt: casualDate().toISOString()
},
nesteSteg: ["Saksbehandlingstiden er lang. Du kan forvente refusjon utbetalt i januar 2025.", "Denne saken vil bli behandlet innen 1. juli.", "Denne saken blir nok ikke behandlet.", ...new Array(7).fill(null)],
nesteSteg: casual.random_element(["Saksbehandlingstiden er lang. Du kan forvente refusjon utbetalt i januar 2025.", "Denne saken vil bli behandlet innen 1. juli.", "Denne saken blir nok ikke behandlet.", ...new Array(7).fill(null)]),
frister: casual.boolean ? [
casual.random_element([null, casualDate().toISOString().slice(0, 10)]),
casual.random_element([null, new Date().toISOString().replace(/T.*/, '')])
Expand Down
4 changes: 2 additions & 2 deletions brukerapi-mock/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion brukerapi-mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@navikt/arbeidsgiver-notifikasjoner-brukerapi-mock",
"description": "Mocker graphql-endepunkt for brukerapi. Nyttig for utvikling av @navikt/arbeidsgiver-notifikasjon-widget.",
"repository": "github:navikt/arbeidsgiver-notifikasjon-widget",
"version": "6.5.8",
"version": "6.5.9",
"license": "MIT",
"main": "dist/notifikasjonMockMiddleware.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions component/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@navikt/arbeidsgiver-notifikasjon-widget",
"description": "React component for notifikasjoner for arbeidsgivere",
"repository": "github:navikt/arbeidsgiver-notifikasjon-widget",
"version": "6.5.8",
"version": "6.5.9",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./lib/esm/lib/esm/index.d.ts",
Expand Down

0 comments on commit 9254fef

Please sign in to comment.