mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
chore(test/server): fix date notes test
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user