diff --git a/platform/commonUI/browse/test/BrowseControllerSpec.js b/platform/commonUI/browse/test/BrowseControllerSpec.js index 70447f4a80..204c8fe85e 100644 --- a/platform/commonUI/browse/test/BrowseControllerSpec.js +++ b/platform/commonUI/browse/test/BrowseControllerSpec.js @@ -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();