Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-03-05 15:59:34 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-03-05 15:59:34 -0500
commit6cefab534403e3329d6cb43f563291a8f24e0699 (patch)
tree2e593108a7216790b6f43870c3ad05addb7dd3ce /progtest/test
parent06435f9f178fc17c094c03df544b897d6ff55c72 (diff)
downloadtame-6cefab534403e3329d6cb43f563291a8f24e0699.tar.gz
tame-6cefab534403e3329d6cb43f563291a8f24e0699.tar.bz2
tame-6cefab534403e3329d6cb43f563291a8f24e0699.zip
progtest: Output trailing newline after summary line
* src/reporter/ConsoleTestReporter.js (createSummaryLine): Output trailing newline. * test/reporter/ConsoleTestReporterTest.js: Modify respective test.
Diffstat (limited to 'progtest/test')
-rw-r--r--progtest/test/reporter/ConsoleTestReporterTest.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/progtest/test/reporter/ConsoleTestReporterTest.js b/progtest/test/reporter/ConsoleTestReporterTest.js
index 07e3e52..c7fa459 100644
--- a/progtest/test/reporter/ConsoleTestReporterTest.js
+++ b/progtest/test/reporter/ConsoleTestReporterTest.js
@@ -166,12 +166,13 @@ describe( "ConsoleTestReporter", () =>
const lines = output.split( '\n' );
// preceded by empty line
- expect( lines[ lines.length - 2 ] ).to.equal( "" );
+ expect( lines[ lines.length - 3 ] ).to.equal( "" );
// last line
- expect( lines[ lines.length - 1 ] ).to.equal(
+ expect( lines[ lines.length - 2 ] ).to.equal(
`5 tests, 2 failed (15 assertions, 3 failures)`
);
+ expect( lines[ lines.length - 1 ] ).to.equal( "" );
} );
} );
} );