chaiMongoDoc

Mongo Document equality assertions for chai.

NPM version Build Status

#mongoDoc(document)

  expect(someDoc).to.be.mongoDoc(actualDoc)

#objectId

  expect(someObjectId).to.be.objectId