setup.js 258 B

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