Skip to content

Commit

Permalink
TypeError correction
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Nov 23, 2018
1 parent 593e9b8 commit ca6492e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Mocha.prototype.ui = function(name) {
exports.before = context.before || context.suiteSetup;
exports.describe = context.describe || context.suite;
exports.it = context.it || context.test;
exports.xit = context.xit || context.test.skip;
exports.xit = context.xit || (context.test && context.test.skip);
exports.setup = context.setup || context.beforeEach;
exports.suiteSetup = context.suiteSetup || context.before;
exports.suiteTeardown = context.suiteTeardown || context.after;
Expand Down

0 comments on commit ca6492e

Please sign in to comment.