Skip to content

Commit

Permalink
Remove timezone dependent tests (denoland#8131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Oct 26, 2020
1 parent 4c41ba5 commit 6a8d0d8
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions std/datetime/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6a8d0d8

Please sign in to comment.