Skip to content

Commit

Permalink
Update test/document.test.js
Browse files Browse the repository at this point in the history
Co-authored-by: hasezoey <hasezoey@gmail.com>
  • Loading branch information
vkarpov15 and hasezoey authored Oct 9, 2024
1 parent 80441c0 commit 8068c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/document.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13947,7 +13947,7 @@ describe('document', function() {
const Test = db.model('Test', TestSchema);

const professionalId = new mongoose.Types.ObjectId();
await Test.insertMany([{ professionalId, name: 'test' }]);
await Test.insertMany([{ professionalId, firstName: 'test' }]);

const doc = await Test.findOne({ professionalId }).lean().orFail();
assert.ok(doc.professionalId instanceof mongoose.Types.ObjectId);
Expand Down

0 comments on commit 8068c6a

Please sign in to comment.