-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
increase test coverage of mocha.js #2704
increase test coverage of mocha.js #2704
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good in general! Thanks!
There are a couple "true" vs "false" issues (comments by the specific lines) that need to be fixed.
(Any other comments, while worth looking into on our part if nothing else, shouldn't block this from going in. Including the following comment...)
We should double-check consistency of method chainability, seeing that many but not all of these are being tested for chainability.
test/mocha.spec.js
Outdated
mocha.options.ignoreLeaks.should.equal(true); | ||
}); | ||
|
||
it('should set the ignoreLeaks option to true when param equals false', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"true" here should read "false".
test/mocha.spec.js
Outdated
var mocha = new Mocha(blankOpts); | ||
mocha.ignoreLeaks(false).should.equal(mocha); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to also test the behavior of .ignoreLeaks()
(no parameter) while we're at it?
test/mocha.spec.js
Outdated
mocha.options.useInlineDiffs.should.equal(true); | ||
}); | ||
|
||
it('should set the useInlineDiffs option to true when param equals false', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"true" vs. "false" again
78854cf
to
1b1377c
Compare
Changes done. |
…f_mocha_js increase test coverage of mocha.js
Adds a few tests & increases the test coverage of mocha.js