Skip to content

Commit d6cd1db

Browse files
committed
test: fix a couple of failing tests
1 parent 84ac690 commit d6cd1db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/document.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1985,7 +1985,7 @@ describe('document', function() {
19851985

19861986
const err = await person.save().then(() => null, err => err);
19871987
assert.equal(err instanceof DocumentNotFoundError, true);
1988-
assert.equal(err.message, `No document found for query "{ _id: new ObjectId("${person._id}") }" on model "Person"`);
1988+
assert.equal(err.message, `No document found for query "{ _id: new ObjectId('${person._id}') }" on model "Person"`);
19891989
});
19901990

19911991
it('saving a document when version bump required, throws a VersionError when document is not found (gh-10974)', async function() {
@@ -2020,7 +2020,7 @@ describe('document', function() {
20202020
}
20212021
catch (err) {
20222022
assert.equal(err instanceof DocumentNotFoundError, true);
2023-
assert.equal(err.message, `No document found for query "{ _id: new ObjectId("${person._id}") }" on model "Person"`);
2023+
assert.equal(err.message, `No document found for query "{ _id: new ObjectId('${person._id}') }" on model "Person"`);
20242024
threw = true;
20252025
}
20262026

0 commit comments

Comments
 (0)