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
Notes: sideshowbarker 2024-07-18 18:11:39 +09:00

View file

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