forked from jbillimoria/JavaScriptButtons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunner.js
More file actions
40 lines (32 loc) · 647 Bytes
/
runner.js
File metadata and controls
40 lines (32 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*global require, window, module */
require.config({
paths: {
"mocha": "../../node_modules/mocha/mocha",
"chai": "../../node_modules/chai/chai"
}
});
(function (module) {
'use strict';
if (typeof window !== 'undefined') {
require.config({
shim: {
'mocha': {
init: function () {
return this.mocha;
}
}
}
});
require([
'require',
'chai',
'mocha'
], function (require, chai, mocha) {
var should = chai.should();
mocha.setup('bdd');
require(['../spec/test'], function () {
mocha.run();
});
});
}
}(typeof module === 'undefined' ? {} : module));/*global module:false */