[Code Style] Run fixstyle on merged changes

This commit is contained in:
Victor Woeltjen 2016-05-20 13:09:16 -07:00
parent bce5643994
commit 9861e63589
3 changed files with 9 additions and 9 deletions

View File

@ -66,11 +66,11 @@ define(
return capabilities[k].invoke(v); return capabilities[k].invoke(v);
} }
}; };
mockContext = jasmine.createSpyObj("context", [ "getParent" ]); mockContext = jasmine.createSpyObj("context", ["getParent"]);
mockComposition = jasmine.createSpyObj("composition", [ "invoke", "add" ]); mockComposition = jasmine.createSpyObj("composition", ["invoke", "add"]);
mockPersistence = jasmine.createSpyObj("persistence", [ "persist" ]); mockPersistence = jasmine.createSpyObj("persistence", ["persist"]);
mockType = jasmine.createSpyObj("type", [ "hasFeature", "getKey" ]); mockType = jasmine.createSpyObj("type", ["hasFeature", "getKey"]);
mockActionCapability = jasmine.createSpyObj("actionCapability", [ "getActions"]); mockActionCapability = jasmine.createSpyObj("actionCapability", ["getActions"]);
mockEditAction = jasmine.createSpyObj("editAction", ["perform"]); mockEditAction = jasmine.createSpyObj("editAction", ["perform"]);
mockDomainObject.getId.andReturn("test"); mockDomainObject.getId.andReturn("test");

View File

@ -60,7 +60,7 @@ define(
'getCapability' 'getCapability'
]); ]);
mockDomainObject.getCapability.andCallFake(function (name) { mockDomainObject.getCapability.andCallFake(function (name) {
return capabilities[name]; return capabilities[name];
}); });
mockPolicyService = jasmine.createSpyObj('policyService', [ mockPolicyService = jasmine.createSpyObj('policyService', [
@ -86,7 +86,7 @@ define(
expect(mockScope.regions.length).toBe(2); expect(mockScope.regions.length).toBe(2);
}); });
it("Responds to status changes", function() { it("Responds to status changes", function () {
mockPolicyService.allow.andReturn(true); mockPolicyService.allow.andReturn(true);
controller = new InspectorController(mockScope, mockPolicyService); controller = new InspectorController(mockScope, mockPolicyService);
expect(mockScope.regions.length).toBe(2); expect(mockScope.regions.length).toBe(2);
@ -96,7 +96,7 @@ define(
expect(mockScope.regions.length).toBe(0); expect(mockScope.regions.length).toBe(0);
}); });
it("Unregisters status listener", function() { it("Unregisters status listener", function () {
var mockListener = jasmine.createSpy('listener'); var mockListener = jasmine.createSpy('listener');
mockStatusCapability.listen.andReturn(mockListener); mockStatusCapability.listen.andReturn(mockListener);
controller = new InspectorController(mockScope, mockPolicyService); controller = new InspectorController(mockScope, mockPolicyService);

View File

@ -235,7 +235,7 @@ define(
// Also update when the represented domain object changes // Also update when the represented domain object changes
// (to a different object) // (to a different object)
$scope.$watch("domainObject", refresh); $scope.$watch("domainObject", refresh);
// Finally, also update when there is a new version of that // Finally, also update when there is a new version of that
// same domain object; these changes should be tracked in the // same domain object; these changes should be tracked in the
// model's "modified" field, by the mutation capability. // model's "modified" field, by the mutation capability.