mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibJS/Tests: Add details for toThrowWithMessage did-not-throw case
This commit is contained in:
parent
5b18bce23c
commit
f28491dbe7
Notes:
sideshowbarker
2024-07-18 18:11:39 +09:00
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
Reference in a new issue