progtest (AsyncTestRunner): Fix reporter line breaking

It was adding a count and a line break after the first test run.
master
Mike Gerwitz 2019-05-06 15:53:19 -04:00
parent 5706ab4bef
commit aaf7b47e9e
1 changed files with 2 additions and 2 deletions

View File

@ -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 );