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
I found that captured action(or method)'s arguments are changed when I change the object that I passed as argument.
for example,
classA{foo(b){}}constmockedA=mock(A);constinstanceA=instance(mockedA);constargument={};instanceA.foo(argument);argument.c=5;const[firstArg]=capture(mockedFoo.foo).last();console.log(firstArg)// print { c: 5 } ! I expected it prints { } because I pass {}.
I guess captured argument should be serialized
The text was updated successfully, but these errors were encountered:
I found that captured action(or method)'s arguments are changed when I change the object that I passed as argument.
for example,
I guess captured argument should be serialized
The text was updated successfully, but these errors were encountered: