diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-10-26 10:40:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 10:40:24 -0400 |
commit | 6a8d0d81c12e8f0b0c3c32c0cadbf36c021efd49 (patch) | |
tree | a83b80a7a1bfd2dadc24814d7b80a4e1ac9215e3 | |
parent | 4c41ba5ad787909a478a6ef0d4e36adc05b52b9d (diff) |
Remove timezone dependent tests (#8131)
-rw-r--r-- | std/datetime/test.ts | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/std/datetime/test.ts b/std/datetime/test.ts index 1608ac8d6..b9f6565cb 100644 --- a/std/datetime/test.ts +++ b/std/datetime/test.ts @@ -77,16 +77,6 @@ Deno.test({ Deno.test({ name: "[std/datetime] format", fn: () => { - // Date - assertEquals( - "2019-01-01", - datetime.format(new Date("2019-01-01"), "yyyy-MM-dd"), - ); - assertEquals( - "01.01.2019", - datetime.format(new Date("2019-01-01"), "dd.MM.yyyy"), - ); - // 00 hours assertEquals( "01:00:00", @@ -277,7 +267,6 @@ Deno.test({ name: "[std/datetime] weekOfYear", fn: () => { assertEquals(datetime.weekOfYear(new Date("2020-01-05T03:00:00.000Z")), 1); - assertEquals(datetime.weekOfYear(new Date("2020-12-28T03:00:00.000Z")), 53); // 53 weeks in 2020 assertEquals(datetime.weekOfYear(new Date("2020-06-28T03:00:00.000Z")), 26); // iso weeks year starting sunday |