edited notes: add happy path tests

This commit is contained in:
contributor 2025-11-16 14:09:56 +02:00
parent dd9f7912d9
commit 452b838180

View File

@ -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");
}); });