From 8068c6a61d3ad7e1b748cc7101147d136bae0cdd Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Wed, 9 Oct 2024 11:22:50 -0400 Subject: [PATCH] Update test/document.test.js Co-authored-by: hasezoey --- test/document.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/document.test.js b/test/document.test.js index 6aa5e98413..b12f19ea68 100644 --- a/test/document.test.js +++ b/test/document.test.js @@ -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);