Merge pull request #17282 from overleaf/bg-object-id-unit-tests-ii

add unit tests for ObjectId comparison with chai and sinon

GitOrigin-RevId: e23156f6fd95f37d447f7569a01916c71bf04ede
This commit is contained in:
Brian Gough
2024-02-27 09:03:04 +00:00
committed by Copybot
parent 63efd61011
commit 6bd5038791
4 changed files with 169 additions and 20 deletions
+3
View File
@@ -6,3 +6,6 @@ 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').ObjectId.cacheHexString = true