[Code Style] Run gulp fixstyle

...to apply code style settings from #142.
This commit is contained in:
Victor Woeltjen
2016-05-19 11:29:13 -07:00
parent f12b9704d9
commit fa77139077
440 changed files with 1885 additions and 1662 deletions

View File

@@ -33,9 +33,9 @@ define(
popupService;
beforeEach(function () {
mockDocument = jasmine.createSpyObj('$document', [ 'find' ]);
mockDocument = jasmine.createSpyObj('$document', ['find']);
testWindow = { innerWidth: 1000, innerHeight: 800 };
mockBody = jasmine.createSpyObj('body', [ 'append' ]);
mockBody = jasmine.createSpyObj('body', ['append']);
mockElement = jasmine.createSpyObj('element', [
'css',
'remove'
@@ -49,13 +49,13 @@ define(
});
it("adds elements to the body of the document", function () {
popupService.display(mockElement, [ 0, 0 ]);
popupService.display(mockElement, [0, 0]);
expect(mockBody.append).toHaveBeenCalledWith(mockElement);
});
describe("when positioned in appropriate quadrants", function () {
it("orients elements relative to the top-left", function () {
popupService.display(mockElement, [ 25, 50 ]);
popupService.display(mockElement, [25, 50]);
expect(mockElement.css).toHaveBeenCalledWith({
position: 'absolute',
left: '25px',
@@ -64,7 +64,7 @@ define(
});
it("orients elements relative to the top-right", function () {
popupService.display(mockElement, [ 800, 50 ]);
popupService.display(mockElement, [800, 50]);
expect(mockElement.css).toHaveBeenCalledWith({
position: 'absolute',
right: '200px',
@@ -73,7 +73,7 @@ define(
});
it("orients elements relative to the bottom-right", function () {
popupService.display(mockElement, [ 800, 650 ]);
popupService.display(mockElement, [800, 650]);
expect(mockElement.css).toHaveBeenCalledWith({
position: 'absolute',
right: '200px',
@@ -82,7 +82,7 @@ define(
});
it("orients elements relative to the bottom-left", function () {
popupService.display(mockElement, [ 120, 650 ]);
popupService.display(mockElement, [120, 650]);
expect(mockElement.css).toHaveBeenCalledWith({
position: 'absolute',
left: '120px',