mirror of
https://github.com/nasa/openmct.git
synced 2025-04-27 06:19:58 +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);
|
||||
});
|
||||
|
||||
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 () {
|
||||
mockNavigationService.getNavigation.andReturn(mockDomainObject);
|
||||
instantiateController();
|
||||
|
Loading…
x
Reference in New Issue
Block a user