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

Nodeunit tests do not run in the browser #307

Closed
mikebolt opened this issue Dec 23, 2016 · 2 comments
Closed

Nodeunit tests do not run in the browser #307

mikebolt opened this issue Dec 23, 2016 · 2 comments
Assignees

Comments

@mikebolt
Copy link
Contributor

When run in the browser this error appears in the console and no tests run:

Cannot read property 'textareas' of undefined

Same error in Chrome, Firefox, Edge, and IE.

@mikebolt
Copy link
Contributor Author

Tested in Safari also.

The version of nodeunit.js that our nodeunit.html points to is in nodeunit's "examples" directory and it appears to be out of date. Running "make browser" inside the nodeunit folder then pointing it to the assembled nodeunit.js file fixed the issue.

We should find a way to keep nodeunit.js up to date.

If you're lazy, you can change nodeunit.html:

nodeunit.run({
    'tween': getTests(TWEEN)
}, {});

Add an empty object as a second parameter.

@mikebolt mikebolt self-assigned this Jun 15, 2017
@mikebolt
Copy link
Contributor Author

Fixed in #339.

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

1 participant