I am trying to mock document.hidden in angular unit test, but it is not working.
I already have tried these options:
spyOn(Document.prototype, <any>'hidden').and.returnValue(true);
spyOn(Document, <any>'hidden').and.returnValue(true);
spyOn(document, <any>'hidden').and.returnValue(true);
spyOn(document, <any>'hidden').and.callFake(() => true);
spyOn(DOCUMENT, <any>'hidden').and.returnValue(true); // using TestBed
Thanks in advance