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

Commit d56e055

Browse files
David limkysDavid limkys
David limkys
authored and
David limkys
committed
Fixed tests of select/remove bug fix.
1 parent 02e599a commit d56e055

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
@@ -755,6 +755,9 @@ describe('ui-select tests', function() {
755755
expect(scope.$model).toBeFalsy();
756756

757757
clickItem(el, 'Samantha');
758+
$timeout.flush();
759+
760+
758761
expect(scope.selection.selected).toBe('Samantha');
759762

760763
expect(scope.$item).toEqual(scope.people[5]);
@@ -839,6 +842,7 @@ describe('ui-select tests', function() {
839842
clickItem(el, 'Samantha');
840843
clickItem(el, 'Adrian');
841844
el.find('.ui-select-match-item').first().find('.ui-select-match-close').click();
845+
$timeout.flush();
842846

843847
expect(scope.$item).toBe(scope.people[5]);
844848
expect(scope.$model).toBe('Samantha');
@@ -868,6 +872,7 @@ describe('ui-select tests', function() {
868872
clickItem(el, 'Samantha');
869873
clickItem(el, 'Adrian');
870874
el.find('.ui-select-match-item').first().find('.ui-select-match-close').click();
875+
$timeout.flush();
871876

872877
expect(scope.$item).toBe(scope.people[5]);
873878
expect(scope.$model).toBe(scope.$item);

0 commit comments

Comments
 (0)