Skip to content

Commit

Permalink
Cleanup logging for Masthead.test.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Nov 22, 2024
1 parent 764cde3 commit d14939f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions client/src/components/Masthead/Masthead.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import flushPromises from "flush-promises";
import { WindowManager } from "layout/window-manager";
import { PiniaVuePlugin } from "pinia";
import { getLocalVue } from "tests/jest/helpers";
import { setupMockConfig } from "tests/jest/mockConfig";

import { useServerMock } from "@/api/client/__mocks__";
import { useUserStore } from "@/stores/userStore";

import { loadWebhookMenuItems } from "./_webhooks";
Expand All @@ -20,10 +20,10 @@ jest.mock("vue-router/composables", () => ({
useRouter: jest.fn(),
}));

const { server, http } = useServerMock();

const currentUser = getFakeRegisteredUser();

setupMockConfig({});

describe("Masthead.vue", () => {
let wrapper;
let localVue;
Expand All @@ -45,12 +45,6 @@ describe("Masthead.vue", () => {
localVue.use(PiniaVuePlugin);
testPinia = createTestingPinia();

server.use(
http.get("/api/configuration", ({ response }) => {
return response(200).json({});
})
);

windowManager = new WindowManager({});
const windowTab = windowManager.getTab();

Expand All @@ -63,6 +57,9 @@ describe("Masthead.vue", () => {
},
localVue,
pinia: testPinia,
stubs: {
Icon: true,
},
});
await flushPromises();
});
Expand Down

0 comments on commit d14939f

Please sign in to comment.