From e928e02b1ca78d2eed7b5f9e4a22204cc1df2ec1 Mon Sep 17 00:00:00 2001 From: slhale Date: Mon, 3 Aug 2015 11:48:50 -0700 Subject: [PATCH] [Search] Update tests Updated the search controller test to work with the changes to loadMore --- platform/search/test/controllers/SearchControllerSpec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/search/test/controllers/SearchControllerSpec.js b/platform/search/test/controllers/SearchControllerSpec.js index b53ac41b5d..e05ab6c17b 100644 --- a/platform/search/test/controllers/SearchControllerSpec.js +++ b/platform/search/test/controllers/SearchControllerSpec.js @@ -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();