bemusic/bemuse

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

Summary

Maintainability
A
1 hr
Test Coverage
const steps = require('artstep')

module.exports = steps()
  .Then(
    /^scrolling speed at beat ([-\d.]+) is ([-\d.]+)$/,
    function (beat, speed) {
      expect(this.positioning.speed(+beat)).to.equal(+speed)
    }
  )

  .Then(
    /^scrolling position at beat ([-\d.]+) is ([-\d.]+)$/,
    function (beat, position) {
      expect(this.positioning.position(+beat)).to.equal(+position)
    }
  )