Skip to content

Commit

Permalink
Legg til mastermeny mock i test
Browse files Browse the repository at this point in the history
  • Loading branch information
ssaegrov committed Jan 31, 2024
1 parent cac5cc3 commit b57402d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/vitest/routes/root.api.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @vitest-environment node

import { oppgaverResponse } from "mocks/api-routes/oppgaverResponse";
import { masterMenyMock, oppgaverResponse } from "mocks/api-routes/oppgaverResponse";
import { http, HttpResponse } from "msw";
import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
import { server } from "../../../mocks/server";
Expand Down Expand Up @@ -66,7 +66,7 @@ describe("Root til applikasjonen", () => {

expect(mock.getAzureSession).toHaveBeenCalledTimes(1);
expect(response.status).toBe(200);
expect(data.oppgaver).toEqual(oppgaverResponse);
expect(data.oppgaver).toEqual([masterMenyMock, ...oppgaverResponse]);
});
});
});

0 comments on commit b57402d

Please sign in to comment.