Skip to content

Commit

Permalink
Fjerner røde streker i tester (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFjellstad authored Nov 28, 2024
1 parent 622e1eb commit 91a5743
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions __tests__/validators/validerLonnIArbeidsgiverperioden.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('validerLonnIArbeidsgiverperioden', () => {
it('should return an empty array when everything is OK', () => {
const input: LonnIArbeidsgiverperioden = {
status: 'Ja',
begrunnelse: 'test',
begrunnelse: 'IkkeFullStillingsandel',
utbetalt: 1234
};

Expand Down Expand Up @@ -54,6 +54,7 @@ describe('validerLonnIArbeidsgiverperioden', () => {
it('should return an error when status is Nei and begrunnelse is empty', () => {
const input: LonnIArbeidsgiverperioden = {
status: 'Nei',
// @ts-ignore
begrunnelse: ''
};

Expand Down Expand Up @@ -111,10 +112,10 @@ describe('validerLonnIArbeidsgiverperioden', () => {
const input: LonnIArbeidsgiverperioden = {
status: 'Nei',
utbetalt: 1234,
begrunnelse: 'test'
begrunnelse: 'FiskerMedHyre'
};

const expected = [];
const expected: any = [];

expect(validerLonnIArbeidsgiverperioden(input)).toEqual(expected);
});
Expand Down Expand Up @@ -216,7 +217,7 @@ describe('validerLonnIArbeidsgiverperioden', () => {

const arbeidsgiverperioder = [{ fom: parseIsoDate('2020-01-01'), tom: parseIsoDate('2020-01-01'), id: '1' }];

const expected = [];
const expected: any = [];

expect(validerLonnIArbeidsgiverperioden(input, arbeidsgiverperioder, 1010)).toEqual(expected);
});
Expand Down Expand Up @@ -280,6 +281,7 @@ describe('validerLonnIArbeidsgiverperioden', () => {
it('should return an error when status is Nei and begrunnelse is missing', () => {
const input: LonnIArbeidsgiverperioden = {
status: 'Nei',
// @ts-ignore
begrunnelse: '',
utbetalt: 500
};
Expand Down

0 comments on commit 91a5743

Please sign in to comment.