   it 'tests Loading state transitions', ->
 
     machine = newSimpleMachine()
-    expect(machine.state).to.equal 'Loading'
+    expect(machine.state).toEqual 'Loading'
 
     legalStates = ['NotStarted', 'ErrorLoading', 'Resuming']
     illegalStates = [

  states.forEach (state) ->
    machine = machineFactoryFn()
    machine.transition state
    expect(machine.state).to.equal state

assertIllegalTransitions = (machineFactoryFn, states) ->
  states.forEach (state) ->

expect = require 'expect'

CollabStateMachine = require '../lib/collaboration/collaborationstatemachine'

