Skip to content

Commit

Permalink
Fiks mock-id og legg på stillingskategori i mock-data
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbb committed Dec 1, 2023
1 parent 9da958a commit c3298cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/mock/eksempler/jobbmesse.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": 582586,
"uuid": "2424ab59-23a0-1749-1756-1047ffff1098",
"uuid": "7b4d2a0c-8cc4-4c5b-b2a6-75992350d885",
"created": "2020-03-16T14:55:21.314124",
"createdBy": "pam-rekrutteringsbistand",
"updated": "2020-03-16T15:02:53.140067",
Expand All @@ -20,6 +20,7 @@
"privacy": "INTERNAL_NOT_SHOWN",
"source": "DIR",
"medium": "DIR",
"stillingskategori": "JOBBMESSE",
"reference": "d328d737-1965-487b-a1bb-9f3872e1c1e7",
"published": "2020-03-16T14:59:46.259214",
"expires": "2020-03-28T02:00:00",
Expand Down
1 change: 1 addition & 0 deletions src/mock/eksempler/stilling.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"privacy": "INTERNAL_NOT_SHOWN",
"source": "DIR",
"medium": "DIR",
"stillingskategori": "STILLING",
"reference": "d328d737-1965-487b-a1bb-9f3872e1c1e7",
"published": "2020-03-16T14:59:46.259214",
"expires": "2020-03-28T02:00:00",
Expand Down
2 changes: 1 addition & 1 deletion src/mock/mock-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ fetchMock
.get(`${basePath}/api/3446abca-2b01-4409-b2fb-0af0f668d204`, stilling)
.get(`${basePath}/api/821451e5-1515-4730-adcf-77632dff0e5e`, annenStilling)
.get(`${basePath}/api/a7ade3d9-4468-4cbc-8125-7903615f5e05`, upublisertStilling)
.get(`${basePath}/api/2424ab59-23a0-1749-1756-1047ffff1098`, jobbmesse)
.get(`${basePath}/api/7b4d2a0c-8cc4-4c5b-b2a6-75992350d885`, jobbmesse)
.get((url) => url.startsWith(`${basePath}/api`), annenStilling);

0 comments on commit c3298cb

Please sign in to comment.