1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 16:19:12 -05:00

Remove timezone dependent tests (#8131)

This commit is contained in:
Ryan Dahl 2020-10-26 10:40:24 -04:00 committed by GitHub
parent 4c41ba5ad7
commit 6a8d0d81c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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