mirror of https://github.com/tc39/test262.git
Temporal: Add arguments to constructor tests.
This commit is contained in:
parent
6573cf954b
commit
1aeed72ab5
|
@ -9,4 +9,4 @@ info: |
|
|||
features: [Temporal]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, () => Temporal.Calendar());
|
||||
assert.throws(TypeError, () => Temporal.Calendar("iso8601"));
|
||||
|
|
|
@ -9,4 +9,4 @@ info: |
|
|||
features: [Temporal]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, () => Temporal.Instant());
|
||||
assert.throws(TypeError, () => Temporal.Instant(0n));
|
||||
|
|
|
@ -9,4 +9,4 @@ info: |
|
|||
features: [Temporal]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, () => Temporal.PlainDate());
|
||||
assert.throws(TypeError, () => Temporal.PlainDate(1970, 1, 2));
|
||||
|
|
|
@ -9,4 +9,4 @@ info: |
|
|||
features: [Temporal]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, () => Temporal.PlainDateTime());
|
||||
assert.throws(TypeError, () => Temporal.PlainDateTime(1970, 1, 2, 12, 0, 0));
|
||||
|
|
|
@ -9,4 +9,4 @@ info: |
|
|||
features: [Temporal]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, () => Temporal.PlainMonthDay());
|
||||
assert.throws(TypeError, () => Temporal.PlainMonthDay(1, 2));
|
||||
|
|
|
@ -9,4 +9,4 @@ info: |
|
|||
features: [Temporal]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, () => Temporal.PlainTime());
|
||||
assert.throws(TypeError, () => Temporal.PlainTime(12, 0, 0));
|
||||
|
|
|
@ -9,4 +9,4 @@ info: |
|
|||
features: [Temporal]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, () => Temporal.TimeZone());
|
||||
assert.throws(TypeError, () => Temporal.TimeZone("UTC"));
|
||||
|
|
|
@ -9,4 +9,4 @@ info: |
|
|||
features: [Temporal]
|
||||
---*/
|
||||
|
||||
assert.throws(TypeError, () => Temporal.ZonedDateTime());
|
||||
assert.throws(TypeError, () => Temporal.ZonedDateTime(0n, "UTC"));
|
||||
|
|
Loading…
Reference in New Issue