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

Testing Framework - spyOn() problem on Firefox. #150

Open
theegolf opened this issue Oct 26, 2024 · 1 comment
Open

Testing Framework - spyOn() problem on Firefox. #150

theegolf opened this issue Oct 26, 2024 · 1 comment

Comments

@theegolf
Copy link

theegolf commented Oct 26, 2024

Hi, I've faced a problem testing the cartTest.js code with Jasmine 5.4.0 on Firefox, as it gave an error

Error: <spyOn> : Can't spy on setItem because assigning to it had no effect

At first, I thought something was wrong with my code, so I copied the code from the uploaded file and rerun the test. However, the error persisted. I searched and found that this problem occurs on some browsers, i.e. Firefox and Safari (https://jasmine.github.io/pages/faq.html#localstorage), but I didn't understand how the solution worked. Could you please help me solve this problem? Thank you

@Omega24v
Copy link

I have the same issue

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

No branches or pull requests

2 participants