Skip to content

Commit

Permalink
test(unit/runner.spec.js): Fix two assertions
Browse files Browse the repository at this point in the history
Ran test but didn't save first?
  • Loading branch information
plroebuck committed Feb 4, 2019
1 parent 548e261 commit ae2cd79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/runner.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ describe('Runner', function() {
runner.on('fail', function(_test, _err) {
expect(_test, 'to be', test);
expect(_err, 'to be an', Error);
expect(_err, 'to not be', {});
expect(_err, 'not to be', {});
done();
});
runner.fail(test, err);
Expand Down Expand Up @@ -281,7 +281,7 @@ describe('Runner', function() {
var test = new Test('a test', noop);
var err = {message: 'an error message'};
runner.on('fail', function(_test, _err) {
expect(_err, 'to not be an', Error);
expect(_err, 'not to be an', Error);
expect(_err.message, 'to be', 'an error message');
done();
});
Expand Down

0 comments on commit ae2cd79

Please sign in to comment.