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
it('toHaveBeenCalledWith not working with URL object',()=>{constspy=jest.fn()spy(newURL('http://demo'))expect(spy).toHaveBeenCalledWith(newURL('http://demo'))expect(spy).toHaveBeenCalledWith(newURL('http://demo2'))expect(spy).toHaveBeenCalledWith(newURL('http://demo3'))})
Expected behavior
I either expect the last 2 assertions to fail or since the object references are different, I expect all assertions to fail.
Actual behavior
But all assertions pass.
Additional context
No response
Environment
MacOS 14.4.1
The text was updated successfully, but these errors were encountered:
Version
29.7.0
Steps to reproduce
Please run the test below
Expected behavior
I either expect the last 2 assertions to fail or since the object references are different, I expect all assertions to fail.
Actual behavior
But all assertions pass.
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: