chore(test/server): fix date notes test

This commit is contained in:
Elian Doran 2025-04-28 17:38:24 +03:00
parent bb278d495e
commit 7671143233
No known key found for this signature in database

View File

@ -1,6 +1,5 @@
import dayjs from "dayjs"; import dayjs from "dayjs";
import i18next from "i18next"; import { describe, expect, it, vi } from 'vitest';
import { beforeAll,describe, expect, it, vi } from 'vitest';
import type BNote from "../becca/entities/bnote.js"; import type BNote from "../becca/entities/bnote.js";
import dateNotesService from "./date_notes.js"; import dateNotesService from "./date_notes.js";
@ -37,20 +36,6 @@ const mockRootNote = {
} as unknown as BNote; } as unknown as BNote;
describe("date_notes", () => { describe("date_notes", () => {
beforeAll(async () => {
await i18next.init({
lng: "en",
resources: {
en: {
translation: {
"months.march": "March",
"weekdays.saturday": "Saturday"
}
}
}
});
});
describe("getJournalNoteTitle", () => { describe("getJournalNoteTitle", () => {
const testDate = dayjs("2025-03-15"); // Saturday const testDate = dayjs("2025-03-15"); // Saturday