-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.js
31 lines (30 loc) · 1 KB
/
main.js
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
require({
paths: {
bunit: 'lib/bunit',
assert: 'lib/assert',
domReady: 'www/lib/domReady',
Die: 'www/app/Die',
Armor: 'www/app/Armor',
Hero: 'www/app/Hero',
Shield: 'www/app/Shield',
Weapon: 'www/app/Weapon',
Logger: 'www/app/Logger'
}
},
['bunit', 'tests/tests', 'domReady'],
function (bunit, tests, domReady) {
domReady(function () {
//This function is called once the DOM is ready.
//It will be safe to query the DOM and manipulate
//DOM nodes in this function.
// var r = bunit.runner();
var outputArea = document.createElement('div');
document.body.appendChild(outputArea)
var r = bunit.runner();
r.run({
output: bunit.HTMLOutput(outputArea),
// interval: 2000 // if you want to repeat tests every X milliseconds
});
});
}
);