diff --git a/index.js b/index.js index 0b0c1c9..2f80793 100644 --- a/index.js +++ b/index.js @@ -226,7 +226,9 @@ function Spec(runner) { runner.on('suite end', function () { unhookIntercept() flushLogStackIfDebug(indent()) - indents -= 1 + if (indents > 0) { + indents -= 1; + } if (someTestsRan) { console.log() diff --git a/package.json b/package.json index e7f7de7..66790a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@novacredit/mocha-reporter", - "version": "0.1.4", + "version": "0.2.1", "description": "Mocha reporter, enhanced", "main": "index.js", "scripts": {