[Mobile] Test

Fixed BrowseControllerSpec.js to
account for the .treeslide
call and added a new test for thatasds
This commit is contained in:
Shivam Dave 2015-07-23 13:46:46 -07:00
parent 143e3eeb6c
commit d176f9f811

View File

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