Skip to content

Commit

Permalink
Merge pull request #114 from xtrasimplicity/Feature/AddJSAntiPatternE…
Browse files Browse the repository at this point in the history
…xample

Best Practices > Anti-patterns: Added 'feature-coupled' step definition example for JS.
  • Loading branch information
xtrasimplicity committed Mar 7, 2018
2 parents ccb1134 + 3460460 commit cc58f1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion content/anti-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,12 @@ The{{% text "java" %}}`edit_work_experience_steps.java`{{% /text %}}
```

```javascript
TODO: See Java or Ruby example
var { Given } = require('cucumber');

Given(/^I have a CV and I'm on the edit description page$/, function () {
this.employee = new Employee('Sally');
this.employee.createCV();
});
```

```ruby
Expand Down

0 comments on commit cc58f1d

Please sign in to comment.