File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -242,13 +242,13 @@ describe('Search Table', () => {
242242 expect ( table_onSearch ) . toHaveBeenCalledTimes ( 1 ) ;
243243
244244 const load_data = jquery_load . mock . calls [ 0 ] [ 1 ] ;
245- expect ( load_data ) . toHaveProperty ( 'criteria[0][link]' ) ;
245+ expect ( 'criteria[0][link]' in load_data ) . toBeTrue ( ) ;
246246 expect ( load_data [ 'criteria[0][link]' ] ) . toBe ( 'AND' ) ;
247- expect ( load_data ) . toHaveProperty ( 'criteria[0][field]' ) ;
247+ expect ( 'criteria[0][field]' in load_data ) . toBeTrue ( ) ;
248248 expect ( load_data [ 'criteria[0][field]' ] ) . toBe ( 'view' ) ;
249- expect ( load_data ) . toHaveProperty ( 'criteria[0][searchtype]' ) ;
249+ expect ( 'criteria[0][searchtype]' in load_data ) . toBeTrue ( ) ;
250250 expect ( load_data [ 'criteria[0][searchtype]' ] ) . toBe ( 'contains' ) ;
251- expect ( load_data ) . toHaveProperty ( 'criteria[0][value]' ) ;
251+ expect ( 'criteria[0][value]' in load_data ) . toBeTrue ( ) ;
252252 expect ( load_data [ 'criteria[0][value]' ] ) . toBe ( 'criteria_test' ) ;
253253 expect ( load_data ) . toHaveProperty ( 'is_deleted' ) ;
254254 expect ( load_data [ 'is_deleted' ] ) . toBe ( '0' ) ;
You can’t perform that action at this time.
0 commit comments