         doc.insert 0, 'hi', =>
           test.strictEqual doc.snapshot, 'hi'
           test.strictEqual doc.getText(), 'hi'
-          @model.getSnapshot @name, ({snapshot}) ->
+          @model.getSnapshot @name, (error, {snapshot}) ->
             test.strictEqual snapshot, 'hi'
             test.done()
     

          # Also need to test that ops sent afterwards get sent correctly.
          # because that behaviour IS CURRENTLY BROKEN

          @model.getSnapshot @name, ({snapshot}) ->
            test.strictEqual snapshot, ''
            test.done()


          test.deepEqual op, sentOp
          passPart()

        @model.applyOp @name, {v:0, op:sentOp}, (error) ->
          test.fail error if error
    
    'doc only fires change ops from locally sent ops': (test) ->
      passPart = makePassPart test, 2
