File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -271,14 +271,14 @@ describe('DefinedSchemas', () => {
271271
272272 const indexes = { complex : { createdAt : 1 , updatedAt : 1 } } ;
273273
274- const schemas = [ { className : 'Test' , indexes } ] ;
274+ const schemas = [ { className : 'Test' , fields : { aField : { type : 'String' } } , indexes } ] ;
275275 await new DefinedSchemas ( schemas , server . config ) . execute ( ) ;
276276
277277 let schema = await new Parse . Schema ( 'Test' ) . get ( ) ;
278278 cleanUpIndexes ( schema ) ;
279279 expect ( schema . indexes ) . toEqual ( indexes ) ;
280280
281- indexes . complex2 = { createdAt : 1 , ACL : 1 } ;
281+ indexes . complex2 = { createdAt : 1 , aField : 1 } ;
282282 await new DefinedSchemas ( schemas , server . config ) . execute ( ) ;
283283 schema = await new Parse . Schema ( 'Test' ) . get ( ) ;
284284 cleanUpIndexes ( schema ) ;
You can’t perform that action at this time.
0 commit comments