[Code Style] Run gulp fixstyle
...to apply code style settings from #142.
This commit is contained in:
@@ -34,15 +34,15 @@ define(
|
||||
|
||||
beforeEach(function () {
|
||||
testId = "some-id";
|
||||
testStatusFlags = [ 'a', 'b', 'c' ];
|
||||
testStatusFlags = ['a', 'b', 'c'];
|
||||
|
||||
mockStatusService = jasmine.createSpyObj(
|
||||
'statusService',
|
||||
[ 'listen', 'setStatus', 'listStatuses' ]
|
||||
['listen', 'setStatus', 'listStatuses']
|
||||
);
|
||||
mockDomainObject = jasmine.createSpyObj(
|
||||
'domainObject',
|
||||
[ 'getId', 'getCapability', 'getModel' ]
|
||||
['getId', 'getCapability', 'getModel']
|
||||
);
|
||||
mockUnlisten = jasmine.createSpy('unlisten');
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ define(
|
||||
}
|
||||
|
||||
beforeEach(function () {
|
||||
testStatusFlags = [ 'x', 'y', 'z' ];
|
||||
testStatusFlags = ['x', 'y', 'z'];
|
||||
|
||||
mockScope = {};
|
||||
mockElement = jasmine.createSpyObj('element', [
|
||||
@@ -60,11 +60,11 @@ define(
|
||||
testRepresentation = { key: "someKey" };
|
||||
mockDomainObject = jasmine.createSpyObj(
|
||||
'domainObject',
|
||||
[ 'getModel', 'getId', 'getCapability' ]
|
||||
['getModel', 'getId', 'getCapability']
|
||||
);
|
||||
mockStatusCapability = jasmine.createSpyObj(
|
||||
'status',
|
||||
[ 'list', 'get', 'set', 'listen' ]
|
||||
['list', 'get', 'set', 'listen']
|
||||
);
|
||||
mockUnlisten = jasmine.createSpy();
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ define(
|
||||
mockTopic = jasmine.createSpy('topic');
|
||||
mockTopicInstance = jasmine.createSpyObj(
|
||||
'topicInstance',
|
||||
[ 'notify', 'listen' ]
|
||||
['notify', 'listen']
|
||||
);
|
||||
mockUnlisten = jasmine.createSpy('unlisten');
|
||||
mockCallback = jasmine.createSpy('callback');
|
||||
@@ -75,7 +75,7 @@ define(
|
||||
it("notifies listeners of changes", function () {
|
||||
statusService.setStatus(testId, testStatus, true);
|
||||
expect(mockTopicInstance.notify)
|
||||
.toHaveBeenCalledWith([ testStatus ]);
|
||||
.toHaveBeenCalledWith([testStatus]);
|
||||
statusService.setStatus(testId, testStatus, false);
|
||||
expect(mockTopicInstance.notify)
|
||||
.toHaveBeenCalledWith([ ]);
|
||||
|
||||
Reference in New Issue
Block a user