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
Current, if the stub was only called once, and you try to chain something off .secondCall, you get a terrible error message:
// stub was only called onceexpect(stub).secondCall.calledWith(...)
TypeError: Cannot read property 'calledWith' of undefined
Desired Error message:
"Error: expected stub to be calledTwice, but it was only called once"
This also goes for firstCall, thirdCall, and getCall(n)
Tasks
check if this is fixed already in upstream repo
The text was updated successfully, but these errors were encountered:
kuceb
changed the title
Improve expect(stub).secondCall.calledWith(...) error message when only one call
Improve expect(stub).secondCall.calledWith(...) error message when called once
Aug 11, 2019
Current, if the
stub
was only called once, and you try to chain something off.secondCall
, you get a terrible error message:Desired Error message:
This also goes for
firstCall
,thirdCall
, andgetCall(n)
Tasks
The text was updated successfully, but these errors were encountered: