Skip to content

Commit

Permalink
Add test for ignoreLeaks and fix descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
seppevs committed Jun 15, 2017
1 parent a763592 commit 1b1377c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/unit/mocha.spec.js
Expand Up @@ -62,12 +62,18 @@ describe('Mocha', function () {
mocha.options.ignoreLeaks.should.equal(true);
});

it('should set the ignoreLeaks option to true when param equals false', function () {
it('should set the ignoreLeaks option to false when param equals false', function () {
var mocha = new Mocha(blankOpts);
mocha.ignoreLeaks(false);
mocha.options.ignoreLeaks.should.equal(false);
});

it('should set the ignoreLeaks option to false when the param is undefined', function () {
var mocha = new Mocha(blankOpts);
mocha.ignoreLeaks();
mocha.options.ignoreLeaks.should.equal(false);
});

it('should be chainable', function () {
var mocha = new Mocha(blankOpts);
mocha.ignoreLeaks(false).should.equal(mocha);
Expand Down Expand Up @@ -120,7 +126,7 @@ describe('Mocha', function () {
mocha.options.useInlineDiffs.should.equal(true);
});

it('should set the useInlineDiffs option to true when param equals false', function () {
it('should set the useInlineDiffs option to false when param equals false', function () {
var mocha = new Mocha(blankOpts);
mocha.useInlineDiffs(false);
mocha.options.useInlineDiffs.should.equal(false);
Expand Down

0 comments on commit 1b1377c

Please sign in to comment.