mirror of
https://github.com/nasa/openmct.git
synced 2025-04-19 08:36:24 +00:00
[Search] Update tests
Changed references to isLoading to mockScope.loading
This commit is contained in:
parent
1030eff943
commit
cb0f72052f
@ -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();
|
||||
});
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user