diff --git a/src/components/autocomplete/autocomplete.spec.js b/src/components/autocomplete/autocomplete.spec.js index 928d4d615bd..8e01b578b30 100644 --- a/src/components/autocomplete/autocomplete.spec.js +++ b/src/components/autocomplete/autocomplete.spec.js @@ -184,7 +184,7 @@ describe('', 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">\ {{item.display}}\ @@ -219,8 +219,8 @@ describe('', 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(); })); });