File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/form Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -550,7 +550,7 @@ define([
550
550
expect ( obj . hasOwnProperty ( 'filterOptionsList' ) ) . toBeDefined ( ) ;
551
551
} ) ;
552
552
553
- it ( 'Should call loadOptions with value when searchOptions is true' , function ( ) {
553
+ it ( 'Should call loadOptions with value when searchOptions is true' , function ( done ) {
554
554
spyOn ( obj , 'filterInputValue' ) . and . returnValue ( ' heLlO ' ) ;
555
555
556
556
spyOn ( obj , 'loadOptions' ) ;
@@ -559,7 +559,10 @@ define([
559
559
560
560
obj . filterOptionsList ( ) ;
561
561
562
- expect ( obj . loadOptions ) . toHaveBeenCalledWith ( 'hello' ) ;
562
+ setTimeout ( function ( ) {
563
+ expect ( obj . loadOptions ) . toHaveBeenCalledWith ( 'hello' ) ;
564
+ done ( ) ;
565
+ } , obj . debounce ) ;
563
566
} ) ;
564
567
} ) ;
565
568
describe ( '"isSelectedValue" method' , function ( ) {
You can’t perform that action at this time.
0 commit comments