[Search] Update tests

Updated the search controller test to work with
the changes to loadMore
This commit is contained in:
slhale 2015-08-03 11:48:50 -07:00
parent 1cd6685b36
commit e928e02b1c

View File

@ -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();