Fix test setup to prevent warning

This commit is contained in:
Ramon Wenger 2024-11-20 20:17:01 +01:00
parent c68057448e
commit b785e327c6
1 changed files with 6 additions and 8 deletions

View File

@ -6,14 +6,12 @@ import I18NextVue from "i18next-vue";
import { expect, vi } from "vitest";
describe("AttendanceStatus.vue", async () => {
beforeEach(async () => {
vi.useFakeTimers();
const date = new Date(1999, 2, 31);
vi.setSystemTime(date);
await i18nextInit();
await loadI18nextLocaleMessages("de");
config.global.plugins = [[I18NextVue, { i18next }]];
});
test("Attendance check complete", () => {
const wrapper = mount(AttendanceStatus, {