Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Feb 21, 2023
1 parent c7b2b16 commit 67f0489
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/model.discriminator.querying.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/);
Expand All @@ -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);
Expand Down

0 comments on commit 67f0489

Please sign in to comment.