Skip to content

Commit

Permalink
[[FIX]] Some hooks throw error when used with protractor-tartare (Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseAntonioRodriguez committed Jul 13, 2016
1 parent 1059e79 commit d605df2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ node_modules/
.idea/
.gitignore
.npmignore
.jscsrc
.eslintrc
presentation/
8 changes: 5 additions & 3 deletions lib/interfaces/gherkin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};
}
Expand Down

0 comments on commit d605df2

Please sign in to comment.