-
-
Save hiakku/33d0d97743a698ea2435acfd9eddde23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('test for document readyState property', () => { | |
//Define the document.readyState property with value as loading | |
Object.defineProperty(document, 'readyState', { | |
value: 'loading', | |
configurable: true, | |
}); | |
//Here you can call the function with the document.readyState property | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment