Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test/document.test.js
Co-authored-by: hasezoey <[email protected]>
  • Loading branch information
vkarpov15 and hasezoey authored Oct 9, 2024
commit 8068c6a61d3ad7e1b748cc7101147d136bae0cdd
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
Loading