Clean code.
This commit is contained in:
parent
60b366a7f4
commit
b2c4802310
@ -38,7 +38,7 @@ function onEnd() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var count = 0;
|
var count = 0;
|
||||||
function onTest() {
|
function onTestEnd() {
|
||||||
|
|
||||||
if (count % 25 === 0) {
|
if (count % 25 === 0) {
|
||||||
update();
|
update();
|
||||||
@ -56,7 +56,7 @@ function setupMocha() {
|
|||||||
function runMocha() {
|
function runMocha() {
|
||||||
|
|
||||||
mocha.run()
|
mocha.run()
|
||||||
.on('test', onTest)
|
.on('test end', onTestEnd)
|
||||||
.on('end', onEnd);
|
.on('end', onEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user