Skip to content

Commit

Permalink
justert tester av mapGravidRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFjellstad committed Oct 29, 2024
1 parent 8de03a7 commit fd0bf53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/api/gravid/mapGravidRequest.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ describe('mapGravidRequest', () => {
true,
undefined
);
}).toThrow('');
}).toThrow('Fnr må spesifiseres');
});
it('should fail when no orgnr', () => {
expect(() => {
Expand All @@ -68,7 +68,7 @@ describe('mapGravidRequest', () => {
true,
undefined
);
}).toThrow('');
}).toThrow('Orgnr må spesifiseres');
});

it('should fail when no tilrettelegge', () => {
Expand All @@ -85,7 +85,7 @@ describe('mapGravidRequest', () => {
true,
undefined
);
}).toThrow('');
}).toThrow('Tilrettelegge må spesifiseres');
});

it('should fail when no bekreft', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/kroniskkrav/KravPeriode.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { languageInit } from '../../locale/languageInit';
import i18next from 'i18next';
import Locales from '../../locale/Locales';
import Language from '../../locale/Language';
import { vi } from 'vitest';
import { vi, expect } from 'vitest';

const enkeltPeriode: KroniskKravPeriode = { uniqueKey: 'mocked' };

Expand Down

0 comments on commit fd0bf53

Please sign in to comment.