Bemuse v54.0.1
Initializing
  • passes: 2
  • failures: 0
  • duration: 0.07s
  • ./app/interactors/createAutoVelocity.spec.js

    • createAutoVelocity

      • when disabled

        • initial speed should be from options1ms ‣

          var e=new c
          const t=(0,o.Z)({enabled:!1,initialSpeed:3.8,desiredLeadTime:1e3,songBPM:220})
          s()(e._expr(e._capt(3.8===e._capt(e._capt(t,"arguments/0/left/callee/object").getInitialSpeed(),"arguments/0/left"),"arguments/0"),{content:"assert(autoVelocity.getInitialSpeed() === 3.8)",filepath:"createAutoVelocity.spec.js",line:14}))
        • should save speed after playing game2ms ‣

          var e=new c,t=new c
          const n=(0,o.Z)({enabled:!1,initialSpeed:3.8,desiredLeadTime:1e3,songBPM:220}),a=sinon.spy(),r=sinon.spy()
          n.handleGameFinish(2.4,{saveSpeed:a,saveLeadTime:r}),s()(e._expr(e._capt(e._capt(a,"arguments/0/callee/object").calledWith(2.4),"arguments/0"),{content:"assert(saveSpeed.calledWith(2.4))",filepath:"createAutoVelocity.spec.js",line:26})),s()(t._expr(t._capt(!t._capt(t._capt(r,"arguments/0/argument/object").called,"arguments/0/argument"),"arguments/0"),{content:"assert(!saveLeadTime.called)",filepath:"createAutoVelocity.spec.js",line:27}))