Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 517ec79

Browse files
David limkysDavid limkys
David limkys
authored and
David limkys
committed
Fixed tests of select/remove bug fix.
1 parent 83e8282 commit 517ec79

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/select.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,9 @@ describe('ui-select tests', function() {
774774
expect(scope.$model).toBeFalsy();
775775

776776
clickItem(el, 'Samantha');
777+
$timeout.flush();
778+
779+
777780
expect(scope.selection.selected).toBe('Samantha');
778781

779782
expect(scope.$item).toEqual(scope.people[5]);
@@ -858,6 +861,7 @@ describe('ui-select tests', function() {
858861
clickItem(el, 'Samantha');
859862
clickItem(el, 'Adrian');
860863
el.find('.ui-select-match-item').first().find('.ui-select-match-close').click();
864+
$timeout.flush();
861865

862866
expect(scope.$item).toBe(scope.people[5]);
863867
expect(scope.$model).toBe('Samantha');
@@ -887,6 +891,7 @@ describe('ui-select tests', function() {
887891
clickItem(el, 'Samantha');
888892
clickItem(el, 'Adrian');
889893
el.find('.ui-select-match-item').first().find('.ui-select-match-close').click();
894+
$timeout.flush();
890895

891896
expect(scope.$item).toBe(scope.people[5]);
892897
expect(scope.$model).toBe(scope.$item);

0 commit comments

Comments
 (0)