From d176f9f8110898eb749a9318da2be5a28494c0c1 Mon Sep 17 00:00:00 2001 From: Shivam Dave Date: Thu, 23 Jul 2015 13:46:46 -0700 Subject: [PATCH] [Mobile] Test Fixed BrowseControllerSpec.js to account for the .treeslide call and added a new test for thatasds --- platform/commonUI/browse/test/BrowseControllerSpec.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platform/commonUI/browse/test/BrowseControllerSpec.js b/platform/commonUI/browse/test/BrowseControllerSpec.js index ce9296c239..ac695f5ded 100644 --- a/platform/commonUI/browse/test/BrowseControllerSpec.js +++ b/platform/commonUI/browse/test/BrowseControllerSpec.js @@ -52,7 +52,7 @@ define( beforeEach(function () { mockScope = jasmine.createSpyObj( "$scope", - [ "$on", "$watch" ] + [ "$on", "$watch", "treeSlide" ] ); mockRoute = { current: { params: {} } }; mockLocation = jasmine.createSpyObj( @@ -145,6 +145,11 @@ define( ); expect(mockScope.navigatedObject).toEqual(mockDomainObject); }); + + it("updates boolean", function () { +// spyOn(mockScope, 'treeSlide').andCallThrough(); + mockScope.treeSlide(); + }); it("releases its navigation listener when its scope is destroyed", function () { expect(mockScope.$on).toHaveBeenCalledWith(