mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-05 14:08:45 -05:00
032deaf05c
GitOrigin-RevId: 11e09528c153de6b7766d18c3c90d94962190371
11 lines
357 B
JavaScript
11 lines
357 B
JavaScript
const chai = require('chai')
|
|
chai.should()
|
|
chai.use(require('chai-as-promised'))
|
|
chai.use(require('sinon-chai'))
|
|
chai.use(require('chai-exclude'))
|
|
|
|
// Do not truncate assertion errors
|
|
chai.config.truncateThreshold = 0
|
|
|
|
// ensure every ObjectId has the id string as a property for correct comparisons
|
|
require('mongodb-legacy').ObjectId.cacheHexString = true
|