Temporal: Add arguments to constructor tests.

This commit is contained in:
Ms2ger 2022-05-25 16:28:22 +02:00 committed by Philip Chimento
parent 6573cf954b
commit 1aeed72ab5
8 changed files with 8 additions and 8 deletions

View File

@ -9,4 +9,4 @@ info: |
features: [Temporal]
---*/
assert.throws(TypeError, () => Temporal.Calendar());
assert.throws(TypeError, () => Temporal.Calendar("iso8601"));

View File

@ -9,4 +9,4 @@ info: |
features: [Temporal]
---*/
assert.throws(TypeError, () => Temporal.Instant());
assert.throws(TypeError, () => Temporal.Instant(0n));

View File

@ -9,4 +9,4 @@ info: |
features: [Temporal]
---*/
assert.throws(TypeError, () => Temporal.PlainDate());
assert.throws(TypeError, () => Temporal.PlainDate(1970, 1, 2));

View File

@ -9,4 +9,4 @@ info: |
features: [Temporal]
---*/
assert.throws(TypeError, () => Temporal.PlainDateTime());
assert.throws(TypeError, () => Temporal.PlainDateTime(1970, 1, 2, 12, 0, 0));

View File

@ -9,4 +9,4 @@ info: |
features: [Temporal]
---*/
assert.throws(TypeError, () => Temporal.PlainMonthDay());
assert.throws(TypeError, () => Temporal.PlainMonthDay(1, 2));

View File

@ -9,4 +9,4 @@ info: |
features: [Temporal]
---*/
assert.throws(TypeError, () => Temporal.PlainTime());
assert.throws(TypeError, () => Temporal.PlainTime(12, 0, 0));

View File

@ -9,4 +9,4 @@ info: |
features: [Temporal]
---*/
assert.throws(TypeError, () => Temporal.TimeZone());
assert.throws(TypeError, () => Temporal.TimeZone("UTC"));

View File

@ -9,4 +9,4 @@ info: |
features: [Temporal]
---*/
assert.throws(TypeError, () => Temporal.ZonedDateTime());
assert.throws(TypeError, () => Temporal.ZonedDateTime(0n, "UTC"));