QUnit plugin that adds setupOne and teardownOnce to modules
Include qunit-once.js after qunit.js in HTML
Or install qunit-once via
npm install qunit-once --save-dev under node.
// tests.jsvar counter = 0;QUnit;QUnit;QUnit;
npm install -g qunitqunit -d qunit-once.js -c tests.js -t tests.js
You don't need to include this module when running with gt, it already supports setupOnce and teardownOnce methods.
Author: Gleb Bahmutov © 2013 @bahmutov
License: MIT - do anything with the code, but don't blame me if it does not work.
Support: if you find any problems with this module, email / tweet / open issue on Github