bemusic/bemuse

View on GitHub
packages/bms/features/step_definitions/random_steps.js

Summary

Maintainability
A
0 mins
Test Coverage
const steps = require('artstep')

module.exports = steps().Given(
  /^the random number generator yields (.*?)$/,
  function (string) {
    const result = string.split(', ').map(function (x) {
      return +x
    })
    this.parseOptions.rng = function () {
      return result.shift()
    }
  }
)