Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function MochaVstsReporter(runner, options) {
MochaJUnitReporter.call(this, runner, options);
var INDENT_BASE = ' ';
var indenter = '';
var indentLevel = 0;
var passes = 0;
var failures = 0;
var skipped = 0;
runner.on('suite', function(suite){
if (suite.root === true){
console.log('Begin test run.............');
indentLevel++;
indenter = INDENT_BASE.repeat(indentLevel);
} else {
console.log('%sStart "%s"', indenter, suite.title);
indentLevel++;
indenter = INDENT_BASE.repeat(indentLevel);
function MochaVstsReporter(runner, options) {
MochaJUnitReporter.call(this, runner, options);
var INDENT_BASE = ' ';
var indenter = '';
var indentLevel = 0;
var passes = 0;
var failures = 0;
var skipped = 0;
runner.on('suite', function(suite){
if (suite.root === true){
indentLevel++;
indenter = INDENT_BASE.repeat(indentLevel);
} else {
indentLevel++;
indenter = INDENT_BASE.repeat(indentLevel);
}
});