Skip to content

Commit

Permalink
Fix Cucumber beforeFeature handler call guard
Browse files Browse the repository at this point in the history
Fixes the run failures reported in cucumber/cucumber-js#342.
  • Loading branch information
jbpros committed Jun 5, 2015
1 parent e787309 commit 1bc1ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/frameworks/cucumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ exports.run = function(runner, specs) {
var originalHandleBeforeFeatureEvent = formatter.handleBeforeFeatureEvent;
formatter.handleBeforeFeatureEvent = function(event, callback) {
feature = event.getPayloadItem('feature');
if (typeof originalHandleAfterScenarioEvent == 'function') {
if (typeof originalHandleBeforeFeatureEvent == 'function') {
originalHandleBeforeFeatureEvent.apply(formatter, arguments);
} else {
callback();
Expand Down

0 comments on commit 1bc1ff0

Please sign in to comment.