Skip to content

Commit 294d287

Browse files
committed
fix: lint
1 parent bad9615 commit 294d287

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/document.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12408,15 +12408,15 @@ describe('document', function() {
1240812408
assert.strictEqual(nestedProjectionDoc.sub.propertyA, 'A');
1240912409
});
1241012410

12411-
it('should ignore `id` if the object contains `id` and `_id` as keys (gh-13762)', async function () {
12411+
it('should ignore `id` if the object contains `id` and `_id` as keys (gh-13762)', async function() {
1241212412
const testSchema = new Schema({
1241312413
_id: {
1241412414
type: Number
1241512415
}
1241612416
});
1241712417
const Test = db.model('Test', testSchema);
1241812418

12419-
const x = new Test({ _id: 1, id: 2});
12419+
const x = new Test({ _id: 1, id: 2 });
1242012420
await x.save();
1242112421
const fromDb = await Test.findById(x._id).lean();
1242212422
assert.equal(fromDb._id, 1);
@@ -12435,7 +12435,7 @@ describe('document', function() {
1243512435

1243612436
const fromDb = await Test.findById(x._id).lean();
1243712437
assert.equal(fromDb._id, 1);
12438-
})
12438+
});
1243912439
});
1244012440

1244112441
describe('Check if instance function that is supplied in schema option is availabe', function() {

test/types/schema.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,4 +1217,4 @@ function gh13800() {
12171217
expectType<string>(this.lastName);
12181218
expectError<string>(this.someOtherField);
12191219
});
1220-
}
1220+
}

0 commit comments

Comments
 (0)