mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 13:17:53 +00:00
[Search] Update tests
Updated the search controller test to work with the changes to loadMore
This commit is contained in:
parent
1cd6685b36
commit
e928e02b1c
@ -101,10 +101,9 @@ define(
|
||||
var oldSize;
|
||||
|
||||
expect(mockPromise.then).toHaveBeenCalledWith(jasmine.any(Function));
|
||||
mockPromise.then.mostRecentCall.args[0]({hits: bigArray(100)});
|
||||
mockPromise.then.mostRecentCall.args[0]({hits: bigArray(100), total: 1000});
|
||||
oldSize = mockScope.results.length;
|
||||
|
||||
// If this doesn't pass, need to make the big array bigger
|
||||
expect(controller.areMore()).toBeTruthy();
|
||||
|
||||
controller.loadMore();
|
||||
|
Loading…
Reference in New Issue
Block a user