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
What would :to-error do different from :to-throw?
The name :to-throw is unfortunate, it actually checks for signals raised by signal and error.
I'm considering renaming it to :to-signal, but maybe :to-error would be a better name. Obviously :to-throw would be kept as an alias.
Do we need a matcher to verify expressions that actually throws?
(I realise this answer is 3 years too late, but I'm trying to put in some work on buttercup again.)
It would be nice if there was a
:to-error
matcher.There's a
:to-throw
, but that's not quite the same.There's
should-error
, but then you're not using theexpect
function.For consistency with the other
expect
matchers, having a:to-error
matcher would be appreciated.The text was updated successfully, but these errors were encountered: