mocha 1.18.1 → 1.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/reporters/html.js +2 -3
- package/mocha.js +2 -3
- package/package.json +1 -1
package/lib/reporters/html.js
CHANGED
|
@@ -42,7 +42,7 @@ var statsTemplate = '<ul id="mocha-stats">'
|
|
|
42
42
|
* @api public
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
|
-
function HTML(runner
|
|
45
|
+
function HTML(runner) {
|
|
46
46
|
Base.call(this, runner);
|
|
47
47
|
|
|
48
48
|
var self = this
|
|
@@ -60,8 +60,7 @@ function HTML(runner, root) {
|
|
|
60
60
|
, stack = [report]
|
|
61
61
|
, progress
|
|
62
62
|
, ctx
|
|
63
|
-
|
|
64
|
-
root = root || document.getElementById('mocha');
|
|
63
|
+
, root = document.getElementById('mocha');
|
|
65
64
|
|
|
66
65
|
if (canvas.getContext) {
|
|
67
66
|
var ratio = window.devicePixelRatio || 1;
|
package/mocha.js
CHANGED
|
@@ -2587,7 +2587,7 @@ var statsTemplate = '<ul id="mocha-stats">'
|
|
|
2587
2587
|
* @api public
|
|
2588
2588
|
*/
|
|
2589
2589
|
|
|
2590
|
-
function HTML(runner
|
|
2590
|
+
function HTML(runner) {
|
|
2591
2591
|
Base.call(this, runner);
|
|
2592
2592
|
|
|
2593
2593
|
var self = this
|
|
@@ -2605,8 +2605,7 @@ function HTML(runner, root) {
|
|
|
2605
2605
|
, stack = [report]
|
|
2606
2606
|
, progress
|
|
2607
2607
|
, ctx
|
|
2608
|
-
|
|
2609
|
-
root = root || document.getElementById('mocha');
|
|
2608
|
+
, root = document.getElementById('mocha');
|
|
2610
2609
|
|
|
2611
2610
|
if (canvas.getContext) {
|
|
2612
2611
|
var ratio = window.devicePixelRatio || 1;
|