@@ -8078,14 +8078,14 @@ describe('document', function() {
80788078 await person . save ( ) ;
80798079 } ) ;
80808080
8081- it ( 'set() merge option with double nested' , async function ( ) {
8081+ it ( 'set() merge option with double nested' , async function ( ) {
80828082 const PersonSchema = new Schema ( {
80838083 info : {
80848084 address : {
80858085 city : String ,
8086- country : { type : String , default : "UK" } ,
8086+ country : { type : String , default : 'UK' } ,
80878087 postcode : String
8088- } ,
8088+ }
80898089 }
80908090 } ) ;
80918091
@@ -8095,19 +8095,19 @@ describe('document', function() {
80958095 const person = new Person ( {
80968096 info : {
80978097 address : {
8098- country : " United States" ,
8099- city : " New York"
8100- } ,
8098+ country : ' United States' ,
8099+ city : ' New York'
8100+ }
81018101 }
81028102 } ) ;
81038103
8104- const update = { info : { address : { postcode : " 12H" } } } ;
8104+ const update = { info : { address : { postcode : ' 12H' } } } ;
81058105
81068106 person . set ( update , undefined , { merge : true } ) ;
8107-
8108- assert . equal ( person . info . address . city , " New York" ) ;
8109- assert . equal ( person . info . address . postcode , " 12H" ) ;
8110- assert . equal ( person . info . address . country , " United States" ) ;
8107+
8108+ assert . equal ( person . info . address . city , ' New York' ) ;
8109+ assert . equal ( person . info . address . postcode , ' 12H' ) ;
8110+ assert . equal ( person . info . address . country , ' United States' ) ;
81118111 } ) ;
81128112
81138113 it ( 'setting single nested subdoc with timestamps (gh-8251)' , async function ( ) {
0 commit comments