diff --git a/std/datetime/test.ts b/std/datetime/test.ts index d1b2ee015f..1608ac8d63 100644 --- a/std/datetime/test.ts +++ b/std/datetime/test.ts @@ -387,3 +387,14 @@ Deno.test({ assertEquals(difference.hours, 1); }, }); + +Deno.test({ + name: "[std/datetime] constants", + fn(): void { + assertEquals(datetime.SECOND, 1e3); + assertEquals(datetime.MINUTE, datetime.SECOND * 60); + assertEquals(datetime.HOUR, datetime.MINUTE * 60); + assertEquals(datetime.DAY, datetime.HOUR * 24); + assertEquals(datetime.WEEK, datetime.DAY * 7); + }, +});