Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
update(autocomplete): updates tests for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Messerle committed Jul 9, 2015
1 parent a52c943 commit 5edca0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/autocomplete/autocomplete.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ describe('<md-autocomplete>', function() {
md-selected-item="selectedItem"\
md-search-text="searchText"\
md-items="item in match(searchText)"\
md-selected-item-change="itemChanged(item)"\
md-selected-item-change="itemChanged(selectedItem)"\
md-item-text="item.display"\
placeholder="placeholder">\
<span md-highlight-text="searchText">{{item.display}}</span>\
Expand Down Expand Up @@ -219,8 +219,8 @@ describe('<md-autocomplete>', function() {

expect(registeredWatcher.calls.count()).toBe(1);
expect(scope.itemChanged.calls.count()).toBe(2);
expect(scope.itemChanged.calls.mostRecent().args[0]).toBeUndefined();
expect(scope.selectedItem).toBe(null);
expect(scope.itemChanged.calls.mostRecent().args[0]).toBeNull();
expect(scope.selectedItem).toBeNull();
}));
});

Expand Down

0 comments on commit 5edca0e

Please sign in to comment.