087a3163b53a19e06a0cc1879faa291045c01df5
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / normalize-selector / test / mocha / node-suite.js
1 // test/mocha/node-suite.js
2
3 // This runs with mocha programmatically rather than from the command line.
4 // how-to-with-comments taken from https://github.com/itaylor/qunit-mocha-ui
5
6 //Load mocha
7 var Mocha = require("mocha");
8
9 //Tell mocha to use the interface.
10 var mocha = new Mocha({ui:"qunit", reporter:"spec"});
11
12 //Add your test files
13 mocha.addFile("./test/mocha/suite.js");
14
15 //Run your tests
16 mocha.run(function(failures){
17   process.exit(failures);
18 });