Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 0262268

Browse files
jbprossjelin
authored andcommitted
fix(cucumber): fix beforeFeature event handler call guard
Fixes the run failures reported in cucumber/cucumber-js#342.
1 parent b00c822 commit 0262268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/frameworks/cucumber.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ exports.run = function(runner, specs) {
7979
var originalHandleBeforeFeatureEvent = formatter.handleBeforeFeatureEvent;
8080
formatter.handleBeforeFeatureEvent = function(event, callback) {
8181
feature = event.getPayloadItem('feature');
82-
if (typeof originalHandleAfterScenarioEvent == 'function') {
82+
if (typeof originalHandleBeforeFeatureEvent == 'function') {
8383
originalHandleBeforeFeatureEvent.apply(formatter, arguments);
8484
} else {
8585
callback();

0 commit comments

Comments
 (0)