diff --git a/.npmignore b/.npmignore index db03064..cf0ee5a 100644 --- a/.npmignore +++ b/.npmignore @@ -3,6 +3,5 @@ node_modules/ .idea/ .gitignore .npmignore -.jscsrc .eslintrc presentation/ diff --git a/lib/interfaces/gherkin.js b/lib/interfaces/gherkin.js index e2a5d7f..f2302a7 100644 --- a/lib/interfaces/gherkin.js +++ b/lib/interfaces/gherkin.js @@ -341,9 +341,11 @@ module.exports = function(rootSuite) { * @private */ function _skipPending(fn, suite) { - return function() { - if (!suite.isPending()) { - fn.call(); + return function(done) { + if (suite.isPending()) { + done(); + } else { + fn.apply(this, arguments); } }; }