Skip to content

Commit 1e26a97

Browse files
committed
edited notes: add happy path tests
1 parent 12eaa33 commit 1e26a97

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

apps/server/src/routes/api/edited-notes.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ describe("edited-notes::resolveDateParams", () => {
6262
runTest("YEAR-1", expectedYearMinus1);
6363
});
6464

65+
it("returns original string for day", () => {
66+
runTest("2020-12-31", "2020-12-31");
67+
});
68+
69+
it("returns original string for month", () => {
70+
runTest("2020-12", "2020-12");
71+
});
72+
73+
it("returns original string for year", () => {
74+
runTest("2020", "2020");
75+
});
76+
6577
it("returns original string for unrecognized keyword", () => {
6678
runTest("FOO", "FOO");
6779
});

0 commit comments

Comments
 (0)