mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00
LibJS/Tests: Add details for toThrowWithMessage did-not-throw case
This commit is contained in:
parent
5b18bce23c
commit
f28491dbe7
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ class ExpectationError extends Error {
|
||||||
this.__doMatcher(() => {
|
this.__doMatcher(() => {
|
||||||
try {
|
try {
|
||||||
this.target();
|
this.target();
|
||||||
this.__expect(false);
|
this.__expect(false, () => "toThrowWithMessage: target function did not throw");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.__expect(
|
this.__expect(
|
||||||
e instanceof class_,
|
e instanceof class_,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue