mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-23 23:00:08 +02:00
13 lines
366 B
JavaScript
13 lines
366 B
JavaScript
import chai from 'chai'
|
|
import sinonChai from 'sinon-chai'
|
|
import chaiAsPromised from 'chai-as-promised'
|
|
import mongodb from 'mongodb-legacy'
|
|
const { ObjectId } = mongodb
|
|
|
|
// ensure every ObjectId has the id string as a property for correct comparisons
|
|
ObjectId.cacheHexString = true
|
|
|
|
// Chai configuration
|
|
chai.should()
|
|
chai.use(sinonChai)
|
|
chai.use(chaiAsPromised)
|