From 9861e6358983d4cc27bd4db8f30f3557eb527bf9 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Fri, 20 May 2016 13:09:16 -0700 Subject: [PATCH] [Code Style] Run fixstyle on merged changes --- .../edit/test/actions/EditAndComposeActionSpec.js | 10 +++++----- .../commonUI/regions/test/InspectorControllerSpec.js | 6 +++--- platform/representation/src/MCTRepresentation.js | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/platform/commonUI/edit/test/actions/EditAndComposeActionSpec.js b/platform/commonUI/edit/test/actions/EditAndComposeActionSpec.js index 50934530b4..fa1d21b1e8 100644 --- a/platform/commonUI/edit/test/actions/EditAndComposeActionSpec.js +++ b/platform/commonUI/edit/test/actions/EditAndComposeActionSpec.js @@ -66,11 +66,11 @@ define( return capabilities[k].invoke(v); } }; - mockContext = jasmine.createSpyObj("context", [ "getParent" ]); - mockComposition = jasmine.createSpyObj("composition", [ "invoke", "add" ]); - mockPersistence = jasmine.createSpyObj("persistence", [ "persist" ]); - mockType = jasmine.createSpyObj("type", [ "hasFeature", "getKey" ]); - mockActionCapability = jasmine.createSpyObj("actionCapability", [ "getActions"]); + mockContext = jasmine.createSpyObj("context", ["getParent"]); + mockComposition = jasmine.createSpyObj("composition", ["invoke", "add"]); + mockPersistence = jasmine.createSpyObj("persistence", ["persist"]); + mockType = jasmine.createSpyObj("type", ["hasFeature", "getKey"]); + mockActionCapability = jasmine.createSpyObj("actionCapability", ["getActions"]); mockEditAction = jasmine.createSpyObj("editAction", ["perform"]); mockDomainObject.getId.andReturn("test"); diff --git a/platform/commonUI/regions/test/InspectorControllerSpec.js b/platform/commonUI/regions/test/InspectorControllerSpec.js index 9c5197b72f..8acd00267c 100644 --- a/platform/commonUI/regions/test/InspectorControllerSpec.js +++ b/platform/commonUI/regions/test/InspectorControllerSpec.js @@ -60,7 +60,7 @@ define( 'getCapability' ]); mockDomainObject.getCapability.andCallFake(function (name) { - return capabilities[name]; + return capabilities[name]; }); mockPolicyService = jasmine.createSpyObj('policyService', [ @@ -86,7 +86,7 @@ define( expect(mockScope.regions.length).toBe(2); }); - it("Responds to status changes", function() { + it("Responds to status changes", function () { mockPolicyService.allow.andReturn(true); controller = new InspectorController(mockScope, mockPolicyService); expect(mockScope.regions.length).toBe(2); @@ -96,7 +96,7 @@ define( expect(mockScope.regions.length).toBe(0); }); - it("Unregisters status listener", function() { + it("Unregisters status listener", function () { var mockListener = jasmine.createSpy('listener'); mockStatusCapability.listen.andReturn(mockListener); controller = new InspectorController(mockScope, mockPolicyService); diff --git a/platform/representation/src/MCTRepresentation.js b/platform/representation/src/MCTRepresentation.js index f25fb7b14e..331139b793 100644 --- a/platform/representation/src/MCTRepresentation.js +++ b/platform/representation/src/MCTRepresentation.js @@ -235,7 +235,7 @@ define( // Also update when the represented domain object changes // (to a different object) $scope.$watch("domainObject", refresh); - + // Finally, also update when there is a new version of that // same domain object; these changes should be tracked in the // model's "modified" field, by the mutation capability.