diff --git a/platform/commonUI/browse/test/BrowseControllerSpec.js b/platform/commonUI/browse/test/BrowseControllerSpec.js index 658a08d5aa..a4be906b1d 100644 --- a/platform/commonUI/browse/test/BrowseControllerSpec.js +++ b/platform/commonUI/browse/test/BrowseControllerSpec.js @@ -301,7 +301,7 @@ define( mockNavigationService ); - mockScope.checkRoot(); + mockScope.checkRoot(); }); // Mocks the back arrow call that diff --git a/platform/commonUI/edit/src/actions/RemoveAction.js b/platform/commonUI/edit/src/actions/RemoveAction.js index 0a60f6d358..8836af0831 100644 --- a/platform/commonUI/edit/src/actions/RemoveAction.js +++ b/platform/commonUI/edit/src/actions/RemoveAction.js @@ -70,8 +70,9 @@ define( } function checkCurrentObjectNavigation(parent) { - var currParent = navigationService.getNavigation().getCapability('context').getParent(); - if (currParent.getId() === parent.getId()) { + var currentParent = navigationService.getNavigation() + .getCapability('context').getParent(); + if (currentParent.getId() === parent.getId()) { navigationService.setNavigation(parent); } } diff --git a/platform/commonUI/edit/test/actions/RemoveActionSpec.js b/platform/commonUI/edit/test/actions/RemoveActionSpec.js index e0776c1712..e6b667d8b2 100644 --- a/platform/commonUI/edit/test/actions/RemoveActionSpec.js +++ b/platform/commonUI/edit/test/actions/RemoveActionSpec.js @@ -65,6 +65,9 @@ define( }, useCapability: function (k, v) { return capabilities[k].invoke(v); + }, + getId: function () { + return "test"; } }; mockContext = jasmine.createSpyObj("context", [ "getParent" ]); @@ -80,13 +83,14 @@ define( "removeListener" ] ); + mockNavigationService.getNavigation.andReturn(mockDomainObject); + mockDomainObject.getId.andReturn("test"); mockDomainObject.getCapability.andReturn(mockContext); mockContext.getParent.andReturn(mockParent); mockType.hasFeature.andReturn(true); - capabilities = { mutation: mockMutation, persistence: mockPersistence,