mirror of
https://github.com/nasa/openmct.git
synced 2025-06-06 17:31:40 +00:00
[Mobile] Test
Fixed BrowseControllerSpec.js to account for the .treeslide call and added a new test for thatasds
This commit is contained in:
parent
143e3eeb6c
commit
d176f9f811
@ -52,7 +52,7 @@ define(
|
|||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
mockScope = jasmine.createSpyObj(
|
mockScope = jasmine.createSpyObj(
|
||||||
"$scope",
|
"$scope",
|
||||||
[ "$on", "$watch" ]
|
[ "$on", "$watch", "treeSlide" ]
|
||||||
);
|
);
|
||||||
mockRoute = { current: { params: {} } };
|
mockRoute = { current: { params: {} } };
|
||||||
mockLocation = jasmine.createSpyObj(
|
mockLocation = jasmine.createSpyObj(
|
||||||
@ -145,6 +145,11 @@ define(
|
|||||||
);
|
);
|
||||||
expect(mockScope.navigatedObject).toEqual(mockDomainObject);
|
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 () {
|
it("releases its navigation listener when its scope is destroyed", function () {
|
||||||
expect(mockScope.$on).toHaveBeenCalledWith(
|
expect(mockScope.$on).toHaveBeenCalledWith(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user