progtest: Output trailing newline after summary line
* src/reporter/ConsoleTestReporter.js (createSummaryLine): Output trailing newline. * test/reporter/ConsoleTestReporterTest.js: Modify respective test.master
parent
06435f9f17
commit
6cefab5344
|
@ -280,6 +280,6 @@ module.exports = Class( 'ConsoleTestReporter',
|
||||||
'virtual protected createSummaryLine'( test_total, failed, acount, afailed )
|
'virtual protected createSummaryLine'( test_total, failed, acount, afailed )
|
||||||
{
|
{
|
||||||
return `\n${test_total} tests, ${failed} failed (` +
|
return `\n${test_total} tests, ${failed} failed (` +
|
||||||
`${acount} assertions, ${afailed} failures)`;
|
`${acount} assertions, ${afailed} failures)\n`;
|
||||||
},
|
},
|
||||||
} );
|
} );
|
||||||
|
|
|
@ -166,12 +166,13 @@ describe( "ConsoleTestReporter", () =>
|
||||||
const lines = output.split( '\n' );
|
const lines = output.split( '\n' );
|
||||||
|
|
||||||
// preceded by empty line
|
// preceded by empty line
|
||||||
expect( lines[ lines.length - 2 ] ).to.equal( "" );
|
expect( lines[ lines.length - 3 ] ).to.equal( "" );
|
||||||
|
|
||||||
// last line
|
// last line
|
||||||
expect( lines[ lines.length - 1 ] ).to.equal(
|
expect( lines[ lines.length - 2 ] ).to.equal(
|
||||||
`5 tests, 2 failed (15 assertions, 3 failures)`
|
`5 tests, 2 failed (15 assertions, 3 failures)`
|
||||||
);
|
);
|
||||||
|
expect( lines[ lines.length - 1 ] ).to.equal( "" );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in New Issue