From 6a8d0d81c12e8f0b0c3c32c0cadbf36c021efd49 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 26 Oct 2020 10:40:24 -0400 Subject: [PATCH] Remove timezone dependent tests (#8131) --- std/datetime/test.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/std/datetime/test.ts b/std/datetime/test.ts index 1608ac8d63..b9f6565cb7 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