Skip to content

Commit

Permalink
TAP unit tests now expect message starting with literal
Browse files Browse the repository at this point in the history
  • Loading branch information
mollstam committed Aug 9, 2018
1 parent bbb3aba commit fa35ed8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/reporters/tap.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ describe('TAP reporter', function() {
var expectedArray = [
'not ok ' + countAfterTestEnd + ' ' + expectedTitle + '\n',
' ---\n',
' message: ' + expectedErrorMessage + '\n',
' message: |-\n',
' ' + expectedErrorMessage + '\n',
' ...\n'
];
expect(stdout, 'to equal', expectedArray);
Expand Down Expand Up @@ -191,7 +192,8 @@ describe('TAP reporter', function() {
var expectedArray = [
'not ok ' + countAfterTestEnd + ' ' + expectedTitle + '\n',
' ---\n',
' message: ' + expectedErrorMessage + '\n',
' message: |-\n',
' ' + expectedErrorMessage + '\n',
' stack: |-\n',
' ' + expectedStack + '\n',
' ...\n'
Expand Down

0 comments on commit fa35ed8

Please sign in to comment.