File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -12391,22 +12391,6 @@ describe('document', function() {
12391
12391
assert . strictEqual ( nestedProjectionDoc . sub . propertyA , 'A' ) ;
12392
12392
} ) ;
12393
12393
12394
- < << << << HEAD
12395
- it ( 'should ignore `id` if the object contains `id` and `_id` as keys (gh-13762)' , async function ( ) {
12396
- const testSchema = new Schema ( {
12397
- _id : {
12398
- type : Number
12399
- }
12400
- } ) ;
12401
- const Test = db . model ( 'Test' , testSchema ) ;
12402
-
12403
- const x = new Test ( { _id : 1 , id : 2 } ) ;
12404
- await x . save ( ) ;
12405
- const fromDb = await Test . findById ( x . _id ) . lean ( ) ;
12406
- assert . equal ( fromDb . _id , 1 ) ;
12407
- } ) ;
12408
- = === ===
12409
- >>> >>> > master
12410
12394
it ( 'handles bigint (gh-13791)' , async function ( ) {
12411
12395
const testSchema = new mongoose . Schema ( {
12412
12396
n : Number ,
You can’t perform that action at this time.
0 commit comments