[Browse] Test navigation when path is not found

This commit is contained in:
Victor Woeltjen 2015-12-11 13:21:52 -08:00
parent b8206b8824
commit 43f6981ba1

View File

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