Skip to content

Commit

Permalink
remove config mock
Browse files Browse the repository at this point in the history
  • Loading branch information
laperlej committed Jul 6, 2024
1 parent 4ca7943 commit c02d410
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions client/src/entry/analysis/modules/ResetPassword.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,6 @@ import ResetPassword from "./ResetPassword.vue";

const localVue = getLocalVue(true);

const configMock = {
allow_user_creation: true,
enable_oidc: true,
mailing_join_addr: "mailing_join_addr",
prefer_custos_login: true,
registration_warning_message: "registration_warning_message",
server_mail_configured: true,
show_welcome_with_login: true,
terms_url: "terms_url",
welcome_url: "welcome_url",
};

jest.mock("app/singleton");
jest.mock("@/composables/config", () => ({
useConfig: jest.fn(() => ({
config: configMock,
isConfigLoaded: true,
})),
}));

const mockRouter = (query: object) => ({
currentRoute: {
query,
Expand Down

0 comments on commit c02d410

Please sign in to comment.