@@ -106,8 +106,8 @@ describe('createMany() ->', () => {
106106 { name : 'newName0' , contacts : { email : 'mail' } } ,
107107 { name : 'newName1' , contacts : { email : 'mail' } } ,
108108 ] ,
109- projection : { error : true } ,
110109 } ,
110+ projection : { error : true } ,
111111 } ) ;
112112 expect ( result . createCount ) . toBe ( 2 ) ;
113113 expect ( result . records [ 0 ] . name ) . toBe ( 'newName0' ) ;
@@ -136,8 +136,8 @@ describe('createMany() ->', () => {
136136 { name : checkedName , contacts : { email : 'mail' } } ,
137137 { name : checkedName , contacts : { email : 'mail' } } ,
138138 ] ,
139- projection : { error : true } ,
140139 } ,
140+ projection : { error : true } ,
141141 } ) ;
142142
143143 const docs = await UserModel . collection . find ( { _id : { $in : res . recordIds } } ) . toArray ( ) ;
@@ -150,8 +150,8 @@ describe('createMany() ->', () => {
150150 const result = await createMany ( UserModel , UserTC ) . resolve ( {
151151 args : {
152152 records : [ { name : 'NewUser' , contacts : { email : 'mail' } } ] ,
153- projection : { error : true } ,
154153 } ,
154+ projection : { error : true } ,
155155 } ) ;
156156 expect ( result . records [ 0 ] . _id ) . toBe ( result . recordIds [ 0 ] ) ;
157157 } ) ;
@@ -171,8 +171,8 @@ describe('createMany() ->', () => {
171171 { name : 'NewUser0' , contacts : { email : 'mail' } } ,
172172 { name : 'NewUser1' , contacts : { email : 'mail' } } ,
173173 ] ,
174- projection : { error : true } ,
175174 } ,
175+ projection : { error : true } ,
176176 context : { ip : '1.1.1.1' } ,
177177 beforeRecordMutate : ( record : any , rp : ExtendedResolveParams ) => {
178178 record . name = 'OverriddenName' ;
@@ -209,8 +209,8 @@ describe('createMany() ->', () => {
209209 { name : 'NewUser0' , contacts : { email : 'mail' } } ,
210210 { name : 'NewUser1' , contacts : { email : 'mail' } } ,
211211 ] ,
212- projection : { error : true } ,
213212 } ,
213+ projection : { error : true } ,
214214 context : { ip : '1.1.1.1' } ,
215215 beforeRecordMutate : ( record : any , rp : ExtendedResolveParams ) => {
216216 record . name = 'OverriddenName' ;
0 commit comments