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