mirror of
https://github.com/thangisme/notes.git
synced 2025-11-23 13:12:25 -05:00
Initial commit
This commit is contained in:
18
node_modules/normalize-selector/test/mocha/node-suite.js
generated
vendored
Normal file
18
node_modules/normalize-selector/test/mocha/node-suite.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// test/mocha/node-suite.js
|
||||
|
||||
// This runs with mocha programmatically rather than from the command line.
|
||||
// how-to-with-comments taken from https://github.com/itaylor/qunit-mocha-ui
|
||||
|
||||
//Load mocha
|
||||
var Mocha = require("mocha");
|
||||
|
||||
//Tell mocha to use the interface.
|
||||
var mocha = new Mocha({ui:"qunit", reporter:"spec"});
|
||||
|
||||
//Add your test files
|
||||
mocha.addFile("./test/mocha/suite.js");
|
||||
|
||||
//Run your tests
|
||||
mocha.run(function(failures){
|
||||
process.exit(failures);
|
||||
});
|
||||
Reference in New Issue
Block a user