v1.4.1
If an argument passed to a Spy
is an object, it will be passed by reference and stored as a reference in the SpyCall
. Before it can be checked by the assertion, it could be mutated by changing another reference to the object.
This release deeply clones function arguments before saving them to prevent possible mutations.