mirror of
https://github.com/denoland/deno.git
synced 2024-12-25 16:49:18 -05:00
Remove timezone dependent tests (#8131)
This commit is contained in:
parent
4c41ba5ad7
commit
6a8d0d81c1
1 changed files with 0 additions and 11 deletions
|
@ -77,16 +77,6 @@ Deno.test({
|
||||||
Deno.test({
|
Deno.test({
|
||||||
name: "[std/datetime] format",
|
name: "[std/datetime] format",
|
||||||
fn: () => {
|
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
|
// 00 hours
|
||||||
assertEquals(
|
assertEquals(
|
||||||
"01:00:00",
|
"01:00:00",
|
||||||
|
@ -277,7 +267,6 @@ Deno.test({
|
||||||
name: "[std/datetime] weekOfYear",
|
name: "[std/datetime] weekOfYear",
|
||||||
fn: () => {
|
fn: () => {
|
||||||
assertEquals(datetime.weekOfYear(new Date("2020-01-05T03:00:00.000Z")), 1);
|
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);
|
assertEquals(datetime.weekOfYear(new Date("2020-06-28T03:00:00.000Z")), 26);
|
||||||
|
|
||||||
// iso weeks year starting sunday
|
// iso weeks year starting sunday
|
||||||
|
|
Loading…
Reference in a new issue