From 67f048901981da0a6de3ca0a89e81cd3f47819f4 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Tue, 21 Feb 2023 11:13:10 -0500 Subject: [PATCH] style: fix lint --- test/model.discriminator.querying.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/model.discriminator.querying.test.js b/test/model.discriminator.querying.test.js index d0d483d1331..e61c0a9d01f 100644 --- a/test/model.discriminator.querying.test.js +++ b/test/model.discriminator.querying.test.js @@ -839,7 +839,7 @@ describe('model', function() { assert.equal(doc.kind, 'bar'); }); - it('allows updating document where discriminator key is present in payload but have the same value (13055)', async function () { + it('allows updating document where discriminator key is present in payload but have the same value (13055)', async function() { const options = { discriminatorKey: 'kind', strict: 'throw' }; const eventSchema = new Schema({ time: Date }, options); db.deleteModel(/Event/); @@ -852,14 +852,14 @@ describe('model', function() { url: 'http://www.example.com' }); - let doc = await ClickedLinkEvent.findOneAndUpdate( + const doc = await ClickedLinkEvent.findOneAndUpdate( {}, { $set: { url: 'http://www.new-url.com', kind: 'ClickedLink' } }, { new: true } ).lean(); assert.equal(doc.url, 'http://www.new-url.com'); }); - + it('reference in child schemas (gh-2719-2)', async function() { function BaseSchema() { Schema.apply(this, arguments);