From aaf7b47e9ecc5bab0804c33387c7926a885dad30 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 6 May 2019 15:53:19 -0400 Subject: [PATCH] progtest (AsyncTestRunner): Fix reporter line breaking It was adding a count and a line break after the first test run. --- progtest/src/AsyncTestRunner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/progtest/src/AsyncTestRunner.js b/progtest/src/AsyncTestRunner.js index 319e1e38..00aea9c6 100644 --- a/progtest/src/AsyncTestRunner.js +++ b/progtest/src/AsyncTestRunner.js @@ -30,7 +30,7 @@ const TestRunner = require( './TestRunner' ); * * This allows the browser to repaint between cases. */ -module.exports = Class( 'TestRunner' ) +module.exports = Class( 'AsyncTestRunner' ) .extend( TestRunner, { /** @@ -61,7 +61,7 @@ module.exports = Class( 'TestRunner' ) } const dfn = dfns.shift(); - const result = this.runTest( dfn, results.length, total ); + const result = this.runTest( dfn, ( results.length + 1 ), total ); results.push( result );