setup.js 313 B

1234567891011
  1. import chai from 'chai'
  2. import chaiAsPromised from 'chai-as-promised'
  3. import sinonChai from 'sinon-chai'
  4. import { ObjectId } from 'mongodb'
  5. // ensure every ObjectId has the id string as a property for correct comparisons
  6. ObjectId.cacheHexString = true
  7. chai.should()
  8. chai.use(chaiAsPromised)
  9. chai.use(sinonChai)