Closed mroderick closed 10 months ago
I actually do not know what is meant here. Is the implementation wrong or the documentation? What behavior should we aim for? What is chosen should at least be consistent, ref confusions in #1679 and alike.
Closing this issue in favour of continuing discussion in #1679
The documentation for
stub.rejects
specifiesHowever, that is incorrect.
The returned value from that example, will give you an
Error
object, with thename
property set to the value of the first argument.However, the desired behaviour (according to the documentation) should be more like this: