You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently assert.doesNotThrow() does not actually throw or otherwise give the message/content of the unexpected error. Instead it just throws a 'Got unwanted error' error, which isn't really helpful. It would be nice to either throw the seen error instead (preferred) or at the very least attach the unexpected error as a property on the thrown error.
The text was updated successfully, but these errors were encountered:
If it throws the passed function's error instead, then is assert.doesNotThrow(fn) any different in effect from fn()? (That doesn't mean we shouldn't make this change. Just trying to get clarity.)
Currently
assert.doesNotThrow()
does not actually throw or otherwise give the message/content of the unexpected error. Instead it just throws a 'Got unwanted error' error, which isn't really helpful. It would be nice to either throw the seen error instead (preferred) or at the very least attach the unexpected error as a property on the thrown error.The text was updated successfully, but these errors were encountered: