mirror of
https://github.com/zadam/trilium.git
synced 2025-12-04 22:44:25 +01:00
edited notes: add positive delta test
https://github.com/TriliumNext/Trilium/pull/7704#discussion_r2532135843
This commit is contained in:
parent
e1170b2666
commit
0ee7a4e6d3
@ -12,6 +12,7 @@ const serverDate = "2024-12-31 23:11:11.000Z";
|
||||
// expected values - from client's point of view
|
||||
const expectedToday = "2025-01-01";
|
||||
const expectedTodayMinus1 = "2024-12-31";
|
||||
const expectedTodayPlus1 = "2025-01-02";
|
||||
const expectedMonth = "2025-01";
|
||||
const expectedMonthMinus2 = "2024-11";
|
||||
const expectedYear = "2025";
|
||||
@ -50,6 +51,10 @@ describe("edited-notes::dateNoteLabelKeywordToDateFilter", () => {
|
||||
keywordResolvesToDate("TODAY", expectedToday);
|
||||
});
|
||||
|
||||
it("resolves 'TODAY+1' to tomorrow's date", () => {
|
||||
keywordResolvesToDate("TODAY+1", expectedTodayPlus1);
|
||||
});
|
||||
|
||||
it("resolves 'MONTH' to current month", () => {
|
||||
keywordResolvesToDate("MONTH", expectedMonth);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user