MCPcopy Create free account
hub / github.com/deployd/deployd / updateStats

Function updateStats

test-app/public/mocha.js:2705–2717  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2703 }
2704
2705 function updateStats() {
2706 // TODO: add to stats
2707 var percent = (stats.tests / runner.total * 100) | 0;
2708 if (progress) {
2709 progress.update(percent).draw(ctx);
2710 }
2711
2712 // update stats
2713 var ms = new Date() - stats.start;
2714 text(passes, stats.passes);
2715 text(failures, stats.failures);
2716 text(duration, (ms / 1000).toFixed(2));
2717 }
2718 }
2719
2720 /**

Callers 1

HTMLFunction · 0.85

Calls 1

textFunction · 0.85

Tested by

no test coverage detected