Skip to content

Commit 380bf46

Browse files
committed
MAGETWO-89675: Build Stabilization
Make assertion async
1 parent 138059b commit 380bf46

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/form/ui-select.test.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ define([
550550
expect(obj.hasOwnProperty('filterOptionsList')).toBeDefined();
551551
});
552552

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) {
554554
spyOn(obj, 'filterInputValue').and.returnValue(' heLlO ');
555555

556556
spyOn(obj, 'loadOptions');
@@ -559,7 +559,10 @@ define([
559559

560560
obj.filterOptionsList();
561561

562-
expect(obj.loadOptions).toHaveBeenCalledWith('hello');
562+
setTimeout(function () {
563+
expect(obj.loadOptions).toHaveBeenCalledWith('hello');
564+
done();
565+
}, obj.debounce);
563566
});
564567
});
565568
describe('"isSelectedValue" method', function () {

0 commit comments

Comments
 (0)