+
+
+`;
diff --git a/test/utils/DateUtils-test.ts b/test/utils/DateUtils-test.ts
index aa8cf2d994..9b1fe4d870 100644
--- a/test/utils/DateUtils-test.ts
+++ b/test/utils/DateUtils-test.ts
@@ -19,6 +19,7 @@ import {
formatRelativeTime,
formatDuration,
formatFullDateNoDayISO,
+ formatDateForInput,
formatTimeLeft,
formatPreciseDuration,
formatLocalDateShort,
@@ -126,6 +127,15 @@ describe("formatFullDateNoDayISO", () => {
});
});
+describe("formatDateForInput", () => {
+ it.each([["1993-11-01"], ["1066-10-14"], ["0571-04-22"], ["0062-02-05"]])(
+ "should format %s",
+ (dateString: string) => {
+ expect(formatDateForInput(new Date(dateString))).toBe(dateString);
+ },
+ );
+});
+
describe("formatTimeLeft", () => {
it.each([
[0, "0s left"],