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

Not implemented: window.alert #25

Open
Igor-Vuk opened this issue May 9, 2017 · 5 comments
Open

Not implemented: window.alert #25

Igor-Vuk opened this issue May 9, 2017 · 5 comments

Comments

@Igor-Vuk
Copy link

Igor-Vuk commented May 9, 2017

After upgrading to the new version of jsdom and jsdom-global I am getting this issue. Code that I am testing has this line inside of it window.alert('Please try again'). It was not a problem until now?

Thanks

@DcsMarcRemolt
Copy link

It seems, most of the not DOM specific globals are now gone. Things like window.Object also give me undefined now.

@Igor-Vuk
Copy link
Author

Yeah. Not sure how to resolve this. I wanna test that alert showed up but always getting the not implemented message.

@modosc
Copy link

modosc commented Oct 19, 2017

this is actually a jsdom issue, workaround is here:

jsdom/jsdom#1843

@jonknowles
Copy link

It seems window.Object and window.Math are also not available, so I also had to roll back to jsdom < 10

@cowardcalf
Copy link

Any updates on this 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

5 participants