mirror of
https://github.com/zadam/trilium.git
synced 2025-12-05 06:54:23 +01:00
edited notes: add happy path tests
This commit is contained in:
parent
dd9f7912d9
commit
452b838180
@ -62,6 +62,18 @@ describe("edited-notes::resolveDateParams", () => {
|
|||||||
runTest("YEAR-1", expectedYearMinus1);
|
runTest("YEAR-1", expectedYearMinus1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("returns original string for day", () => {
|
||||||
|
runTest("2020-12-31", "2020-12-31");
|
||||||
|
});
|
||||||
|
|
||||||
|
it("returns original string for month", () => {
|
||||||
|
runTest("2020-12", "2020-12");
|
||||||
|
});
|
||||||
|
|
||||||
|
it("returns original string for year", () => {
|
||||||
|
runTest("2020", "2020");
|
||||||
|
});
|
||||||
|
|
||||||
it("returns original string for unrecognized keyword", () => {
|
it("returns original string for unrecognized keyword", () => {
|
||||||
runTest("FOO", "FOO");
|
runTest("FOO", "FOO");
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user