UNPKG

prioritizer

Version:

Method to prioritize a list with persistence

23 lines (17 loc) 350 B
// features/support/world.js const { setWorldConstructor } = require('cucumber') class CustomWorld { constructor () { this.variable = 0 } setTo (number) { this.variable = number } incrementBy (number) { this.variable += number } decrementBy (number) { this.variable -= number } } setWorldConstructor(CustomWorld)