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
By default sendMock will always have an error property. If the tests were written tighter and checked to make sure it was no longer a function it would be fine, or better yet it should assert the actual error message.
The text was updated successfully, but these errors were encountered:
We should update the properties in the
error
to be something likeerrorData
anderrorCode
.https://github.com/sinet/lapin-mock/blob/master/lib/sendMock.js#L14-L15
I've seen tests that are too loosely written with like this:
By default sendMock will always have an
error
property. If the tests were written tighter and checked to make sure it was no longer a function it would be fine, or better yet it should assert the actual error message.The text was updated successfully, but these errors were encountered: