Skip to content

Commit

Permalink
chore: Update unit tests after fixing printing of runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed May 18, 2018
1 parent b4cb08d commit 39ab120
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/printers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ describe('printers.js test suite', function() {
'\n,' +
runtimeErrors[0].browser.name + ',' +
'\n,' +
runtimeErrors[0].error + ',' +
JSON.stringify(runtimeErrors[0].error, undefined, 2) + ',' +
'\n,' +
'\n,' +
runtimeErrors[1].browser.name + ',' +
'\n,' +
runtimeErrors[1].error + ',' +
JSON.stringify(runtimeErrors[1].error, undefined, 2) + ',' +
'\n,' +
'\n,' +
'#,\n,' +
Expand Down Expand Up @@ -139,9 +139,9 @@ describe('printers.js test suite', function() {

eq(4, clcFake.red.callCount);
ok(clcFake.red.getCall(0).calledWithExactly(runtimeErrors[0].browser.name));
ok(clcFake.red.getCall(1).calledWithExactly(runtimeErrors[0].error));
ok(clcFake.red.getCall(1).calledWithExactly(JSON.stringify(runtimeErrors[0].error, undefined, 2)));
ok(clcFake.red.getCall(2).calledWithExactly(runtimeErrors[1].browser.name));
ok(clcFake.red.getCall(3).calledWithExactly(runtimeErrors[1].error));
ok(clcFake.red.getCall(3).calledWithExactly(JSON.stringify(runtimeErrors[1].error, undefined, 2)));
});
});

Expand Down

0 comments on commit 39ab120

Please sign in to comment.