mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +02:00
chore(test/server): fix date notes test
This commit is contained in:
parent
bb278d495e
commit
7671143233
@ -1,6 +1,5 @@
|
||||
import dayjs from "dayjs";
|
||||
import i18next from "i18next";
|
||||
import { beforeAll,describe, expect, it, vi } from 'vitest';
|
||||
import { describe, expect, it, vi } from 'vitest';
|
||||
|
||||
import type BNote from "../becca/entities/bnote.js";
|
||||
import dateNotesService from "./date_notes.js";
|
||||
@ -37,20 +36,6 @@ const mockRootNote = {
|
||||
} as unknown as BNote;
|
||||
|
||||
describe("date_notes", () => {
|
||||
beforeAll(async () => {
|
||||
await i18next.init({
|
||||
lng: "en",
|
||||
resources: {
|
||||
en: {
|
||||
translation: {
|
||||
"months.march": "March",
|
||||
"weekdays.saturday": "Saturday"
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("getJournalNoteTitle", () => {
|
||||
const testDate = dayjs("2025-03-15"); // Saturday
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user