mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 08:24:23 +02:00
Move array/function Duration.with tests to the missing-property test
This commit is contained in:
parent
a073f479f8
commit
749a6f9509
@ -15,6 +15,18 @@ assert.throws(
|
||||
"Throws TypeError if no property is present"
|
||||
);
|
||||
|
||||
assert.throws(
|
||||
TypeError,
|
||||
() => instance.with([]),
|
||||
"Throws TypeError if no property is present (with array)"
|
||||
);
|
||||
|
||||
assert.throws(
|
||||
TypeError,
|
||||
() => instance.with(() => {}),
|
||||
"Throws TypeError if no property is present (with function)"
|
||||
);
|
||||
|
||||
assert.throws(
|
||||
TypeError,
|
||||
() => instance.with({ nonsense: true }),
|
||||
|
@ -15,6 +15,4 @@ assert.throws(TypeError, () => instance.with(""), "empty string");
|
||||
assert.throws(TypeError, () => instance.with(Symbol()), "Symbol");
|
||||
assert.throws(TypeError, () => instance.with(7), "number");
|
||||
assert.throws(TypeError, () => instance.with(7n), "bigint");
|
||||
assert.throws(TypeError, () => instance.with([]), "array");
|
||||
assert.throws(TypeError, () => instance.with(() => {}), "function");
|
||||
assert.throws(TypeError, () => instance.with("string"), "string");
|
||||
|
Loading…
x
Reference in New Issue
Block a user