lundi 27 juin 2016

is there a way to change/fake document.visibilityState with something like jsdom or pretender?

I'm trying to create some unit tests and was wondering if there was a way to fake or change document.visibilityState to something else like "prerender" or "hidden" or "visible" randomly with something like jsdom or pretender or something else? If so could I have a code example please?

Aucun commentaire:

Enregistrer un commentaire