bemusic/bemuse

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

Summary

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

module.exports = steps()
  .Then(/^sound (\S+) references file "(.*?)"$/, function (id, file) {
    expect(this.keysounds.get(id)).to.equal(file)
  })

  .Then(/^sound (\S+) is a null reference$/, function (id) {
    void expect(this.keysounds.get(id)).to.be.undefined
  })