From 5edca0ec7f5c94f530ca68b2e8563f9e44408ce4 Mon Sep 17 00:00:00 2001 From: Robert Messerle Date: Thu, 9 Jul 2015 10:18:10 -0700 Subject: [PATCH] update(autocomplete): updates tests for previous commit --- src/components/autocomplete/autocomplete.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); })); });