       should.not.exist err
 
   it 'pretty format should work', (done) ->
-    @watcher = new MongoWatcher {format: 'pretty'}
+    @watcher = new MongoWatch {format: 'pretty'}
     @watcher.watch 'test.users', (event) ->
 
       if event.operation is 'insert'


      # And I'm watching the users collection
      counter = 0
      @watcher = new MongoWatcher {format: 'pretty'}
      @watcher.watch 'test.users', (event) ->

        # I should get three update events

should = require 'should'
{Server, Db} = require 'mongodb'

MongoWatch = require '../'

describe 'Mongo Watch', ->

  before (done) ->
    client = new Db 'test', new Server('localhost', 27017), {w: 1}
