Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stepname is in this we shouldnt hide it with an arrow function #26

Merged
merged 1 commit into from
Nov 14, 2016

Conversation

albertjan
Copy link
Collaborator

@albertjan albertjan commented Sep 2, 2016

This:

.when('I look in the folder', function(next) {
  assert.ok(true, this.step);
  next();
});

instead of this:

.when('I look in the folder', (next) => {
  //this.step is undefined.
  assert.ok(true, this.step);
  next();
});

Fixes #25

@albertjan albertjan changed the title stepname is in this we shouldnt hide it with an arrow f… stepname is in this we shouldnt hide it with an arrow function Sep 2, 2016
@albertjan albertjan merged commit 667f7f5 into master Nov 14, 2016
@simonihmig simonihmig deleted the use-function-not-arrows branch October 19, 2021 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant