caolan / caolan/nodeunit

setUp and tearDown do not appear to work in the browser

Open
#212 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

Steps to reproduce:
1. Go into the examples/browser folder
2. Open test.html
3. Everything works as expected
4. Add setUp and tearDown functions to suite1.js
5. Refresh the page to rerun the tests

_Defect_: the functions added in step 4 are run just like normal tests

This appears to be a defect in the copy of `nodeunit.js` in the examples/browser folder. The example's version of nodeunit.js has a function `wrapGroup` but this is never called; whereas the node-based `nodeunit.js` in lib/core.js does call this.

(Sorry that I don't understand the code base well enough at the moment to offer a patch.)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.