From 7cbb295e17bda61ae5818c3901e93de3d74ed9fa Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Thu, 5 Dec 2024 09:59:45 -0500 Subject: [PATCH] Update test/model.updateOne.test.js Co-authored-by: hasezoey --- test/model.updateOne.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/model.updateOne.test.js b/test/model.updateOne.test.js index 22705a031e..86982ce7f2 100644 --- a/test/model.updateOne.test.js +++ b/test/model.updateOne.test.js @@ -3091,6 +3091,7 @@ describe('model: updateOne: ', function() { assert.equal(doc.login.keys.length, 1); assert.equal(doc.login.keys[0].id, 'test2'); }); + it('casts using overwritten discriminator key schema (gh-15051)', async function() { const embedDiscriminatorSchema = new mongoose.Schema({ field1: String