2019-09-30 10:46:15 -04:00
|
|
|
const chai = require('chai')
|
2021-03-31 08:20:55 -04:00
|
|
|
chai.should()
|
2019-09-30 10:46:15 -04:00
|
|
|
chai.use(require('chai-as-promised'))
|
2021-03-31 08:20:55 -04:00
|
|
|
chai.use(require('sinon-chai'))
|
2022-02-28 07:57:41 -05:00
|
|
|
chai.use(require('chai-exclude'))
|
2019-11-07 05:28:27 -05:00
|
|
|
|
2019-11-26 08:11:19 -05:00
|
|
|
// Do not truncate assertion errors
|
|
|
|
chai.config.truncateThreshold = 0
|
2024-02-26 08:44:01 -05:00
|
|
|
|
|
|
|
// ensure every ObjectId has the id string as a property for correct comparisons
|
2024-08-02 12:27:31 -04:00
|
|
|
require('mongodb-legacy').ObjectId.cacheHexString = true
|