UNPKG

prioritizer

Version:

Method to prioritize a list with persistence

16 lines (12 loc) 407 B
// features/support/steps.js const { Given, When, Then } = require('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) })