mirror of
https://github.com/nasa/openmct.git
synced 2025-04-28 15:02:29 +00:00
[Browse] Test navigation when path is not found
This commit is contained in:
parent
b8206b8824
commit
43f6981ba1
@ -126,6 +126,14 @@ define(
|
|||||||
.toHaveBeenCalledWith(mockDomainObject);
|
.toHaveBeenCalledWith(mockDomainObject);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("navigates to a root-level object, even when default path is not found", function () {
|
||||||
|
mockDomainObject.getId
|
||||||
|
.andReturn("something-other-than-the-" + testDefaultRoot);
|
||||||
|
instantiateController();
|
||||||
|
expect(mockNavigationService.setNavigation)
|
||||||
|
.toHaveBeenCalledWith(mockDomainObject);
|
||||||
|
});
|
||||||
|
|
||||||
it("does not try to override navigation", function () {
|
it("does not try to override navigation", function () {
|
||||||
mockNavigationService.getNavigation.andReturn(mockDomainObject);
|
mockNavigationService.getNavigation.andReturn(mockDomainObject);
|
||||||
instantiateController();
|
instantiateController();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user