UNPKG

auto-tdd

Version:

Automated development with TDD

16 lines (12 loc) 417 B
// features/support/steps.js const { Given, When, Then } = require('@cucumber/cucumber') const { expect } = require('chai') Given('a variable set to {int}', function (number) { this.setTo(number) }) When('I {operation} the variable by {int}', function (operation, number) { operation.call(this, number) }) Then('the variable should contain {int}', function (number) { expect(this.variable).to.eql(number) })