mirror of https://github.com/tc39/test262.git
Update assert failure messages
This commit is contained in:
parent
0c89259da5
commit
94cb047ab8
|
@ -16,6 +16,6 @@ invalidTargets.forEach(target => {
|
||||||
assert.throws(
|
assert.throws(
|
||||||
TypeError,
|
TypeError,
|
||||||
() => fn.call(target),
|
() => fn.call(target),
|
||||||
`Calling format getter on ${target} was not rejected.`
|
`Calling format getter on ${target} should throw a TypeError.`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
@ -16,6 +16,6 @@ invalidTargets.forEach(target => {
|
||||||
assert.throws(
|
assert.throws(
|
||||||
TypeError,
|
TypeError,
|
||||||
() => fn.call(target),
|
() => fn.call(target),
|
||||||
`Calling formatToParts on ${target} was not rejected.`
|
`Calling formatToParts on ${target} should throw a TypeError.`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
@ -16,6 +16,6 @@ invalidTargets.forEach(target => {
|
||||||
assert.throws(
|
assert.throws(
|
||||||
TypeError,
|
TypeError,
|
||||||
() => fn.call(target),
|
() => fn.call(target),
|
||||||
`Calling resolvedOptions on ${target} was not rejected.`
|
`Calling resolvedOptions on ${target} should throw a TypeError.`
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue