diff options
author | Mike Gerwitz <mike.gerwitz@rtspecialty.com> | 2019-05-06 15:53:19 -0400 |
---|---|---|
committer | Mike Gerwitz <mike.gerwitz@rtspecialty.com> | 2019-05-06 15:53:20 -0400 |
commit | aaf7b47e9ecc5bab0804c33387c7926a885dad30 (patch) | |
tree | afd49c0895c7909db755e22255b1b903bef3b4fc /progtest | |
parent | 5706ab4befb8d12637b192afacf303d496a2184a (diff) | |
download | tame-aaf7b47e9ecc5bab0804c33387c7926a885dad30.tar.gz tame-aaf7b47e9ecc5bab0804c33387c7926a885dad30.tar.bz2 tame-aaf7b47e9ecc5bab0804c33387c7926a885dad30.zip |
progtest (AsyncTestRunner): Fix reporter line breaking
It was adding a count and a line break after the first test run.
Diffstat (limited to 'progtest')
-rw-r--r-- | progtest/src/AsyncTestRunner.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/progtest/src/AsyncTestRunner.js b/progtest/src/AsyncTestRunner.js index 319e1e3..00aea9c 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 ); |