@std:testing/mock assertSpyCall - checking args for a partially matching object.
In Jest, you can do partial object matching - like this:
And you can do that when asserting a stub has been called. Is there an equivalent way to do this in the standard library?
Also, annoyingly, the function I'm stubbing has been "overloaded", and as a result, the checker wants the second version, when I'm actually calling the first. (I presume the library in question does something faintly clever with converting a NormalCallBack into a Promise for the first version and is lying in its prototype).
TIA
0 Replies