mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 14:48:13 +00:00
[Search] Update tests
Changed references to isLoading to mockScope.loading
This commit is contained in:
@ -99,11 +99,11 @@ define(
|
|||||||
it("is loading until the service's promise fufills", function () {
|
it("is loading until the service's promise fufills", function () {
|
||||||
// Send query
|
// Send query
|
||||||
controller.search();
|
controller.search();
|
||||||
expect(controller.isLoading()).toBeTruthy();
|
expect(mockScope.loading).toBeTruthy();
|
||||||
|
|
||||||
// Then resolve the promises
|
// Then resolve the promises
|
||||||
mockPromise.then.mostRecentCall.args[0]({hits: []});
|
mockPromise.then.mostRecentCall.args[0]({hits: []});
|
||||||
expect(controller.isLoading()).toBeFalsy();
|
expect(mockScope.loading).toBeFalsy();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user