[Search] Update tests

Changed references to isLoading to
mockScope.loading
This commit is contained in:
slhale 2015-08-14 16:46:22 -07:00
parent 1030eff943
commit cb0f72052f

View File

@ -99,11 +99,11 @@ define(
it("is loading until the service's promise fufills", function () {
// Send query
controller.search();
expect(controller.isLoading()).toBeTruthy();
expect(mockScope.loading).toBeTruthy();
// Then resolve the promises
mockPromise.then.mostRecentCall.args[0]({hits: []});
expect(controller.isLoading()).toBeFalsy();
expect(mockScope.loading).toBeFalsy();
});