mardi 29 novembre 2016

Test data is saved on refresh - karma

I'm writing a Javascript application and need to test that an image stays 'selected' after the page is refreshed. I am using Karma with Jasmine.

If I call window.location.reload(); in my test though I get the error Some of your tests did a full page reload!

Is there a way I can simulate a page reload or a different testing approach I should be taking?

Thanks

Aucun commentaire:

Enregistrer un commentaire