1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:37:34 +00:00

LibJS/Tests: Add details for toThrowWithMessage did-not-throw case

This commit is contained in:
Linus Groh 2021-05-13 23:33:15 +01:00
parent 5b18bce23c
commit f28491dbe7

View file

@ -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_,