File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12408,15 +12408,15 @@ describe('document', function() {
12408
12408
assert . strictEqual ( nestedProjectionDoc . sub . propertyA , 'A' ) ;
12409
12409
} ) ;
12410
12410
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 ( ) {
12412
12412
const testSchema = new Schema ( {
12413
12413
_id : {
12414
12414
type : Number
12415
12415
}
12416
12416
} ) ;
12417
12417
const Test = db . model ( 'Test' , testSchema ) ;
12418
12418
12419
- const x = new Test ( { _id : 1 , id : 2 } ) ;
12419
+ const x = new Test ( { _id : 1 , id : 2 } ) ;
12420
12420
await x . save ( ) ;
12421
12421
const fromDb = await Test . findById ( x . _id ) . lean ( ) ;
12422
12422
assert . equal ( fromDb . _id , 1 ) ;
@@ -12435,7 +12435,7 @@ describe('document', function() {
12435
12435
12436
12436
const fromDb = await Test . findById ( x . _id ) . lean ( ) ;
12437
12437
assert . equal ( fromDb . _id , 1 ) ;
12438
- } )
12438
+ } ) ;
12439
12439
} ) ;
12440
12440
12441
12441
describe ( 'Check if instance function that is supplied in schema option is availabe' , function ( ) {
Original file line number Diff line number Diff line change @@ -1217,4 +1217,4 @@ function gh13800() {
1217
1217
expectType < string > ( this . lastName ) ;
1218
1218
expectError < string > ( this . someOtherField ) ;
1219
1219
} ) ;
1220
- }
1220
+ }
You can’t perform that action at this time.
0 commit comments