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

document is not defined #1816

Closed
hardog opened this issue Jul 27, 2015 · 3 comments
Closed

document is not defined #1816

hardog opened this issue Jul 27, 2015 · 3 comments

Comments

@hardog
Copy link

hardog commented Jul 27, 2015

when I typed 'mocha -R HTML test.js' in CL, it happens!

@danielstjules
Copy link
Contributor

Sounds like you're running browser tests from the command line, without a headless browser. This might be what you want: https://github.com/nathanboktae/mocha-phantomjs https://github.com/mrhooray/gulp-mocha-phantomjs

@danielstjules
Copy link
Contributor

Closing as the last reply was almost a month ago.

@DKhateek1372
Copy link

Hey
The solution is provided by you is now deprecated.
Still I am getting the same error is that :
Reference Error: document is not defined

image

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

3 participants