Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Spy not spy good on object parameters #176

Open
a3bd2lra7man opened this issue Mar 13, 2023 · 1 comment
Open

bug: Spy not spy good on object parameters #176

a3bd2lra7man opened this issue Mar 13, 2023 · 1 comment

Comments

@a3bd2lra7man
Copy link

a3bd2lra7man commented Mar 13, 2023

Summary

Spy not spy good on object parameters,
If I compare

        const objectTompare = {
        }
	const verifyCall = spy.verify('some-methods');
        assertEquals(verifyCall.args[0], objectToCompare );

I got true

but if I do

           verifyCall.toBeCalledWithArgs(objectToCompare);

** I got an error saying " received unexpected arg [object Object]<object> at parameter position 1 **

@crookse
Copy link
Member

crookse commented Mar 13, 2023

Hey @a3bd2lra7man! Thanks for raising this. I'll see if I can replicate this. Also, it would be helpful if you could provide more of your test code with this issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants