0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00

test(std/datetime): test datetime constants (#8068)

Fixes: #8067
This commit is contained in:
Eugen Cazacu 2020-10-23 01:14:57 +02:00 committed by GitHub
parent c5c48f845a
commit 9fa59f0ca8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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