[Browse] Test navigation when path is not found
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user