mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
parent
c5c48f845a
commit
9fa59f0ca8
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue