mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:07:34 +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(() => {
|
||||
try {
|
||||
this.target();
|
||||
this.__expect(false);
|
||||
this.__expect(false, () => "toThrowWithMessage: target function did not throw");
|
||||
} catch (e) {
|
||||
this.__expect(
|
||||
e instanceof class_,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue