Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Add test for Mocha.bail()
Browse files Browse the repository at this point in the history
  • Loading branch information
38elements authored and boneskull committed Oct 6, 2017
1 parent cc10fff commit 542b988
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/mocha.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,13 @@ describe('Mocha', function () {
expect(mocha.options.delay).to.equal(true);
});
});

describe('.bail()', function () {
it('should set the suite._bail to true if there is no arguments', function () {
var mocha = new Mocha({bail: false});
expect(mocha.suite._bail).to.equal(false);
mocha.bail();
expect(mocha.suite._bail).to.equal(true);
});
});
});

0 comments on commit 542b988

Please sign in to comment.