Remove lint errors
authorKevin Sawicki <kevinsawicki@gmail.com>
Wed, 4 Jan 2017 22:57:51 +0000 (14:57 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Fri, 6 Jan 2017 17:58:40 +0000 (09:58 -0800)
spec/chromium-spec.js
spec/static/main.js

index 8b672a6..58efdc7 100644 (file)
@@ -46,7 +46,7 @@ describe('chromium feature', function () {
     var w = null
 
     afterEach(function () {
-      return closeWindow(w).then(() => w = null)
+      return closeWindow(w).then(function () { w = null })
     })
 
     it('is set correctly when window is not shown', function (done) {
@@ -157,7 +157,7 @@ describe('chromium feature', function () {
     var w = null
 
     afterEach(function () {
-      return closeWindow(w).then(() => w = null)
+      return closeWindow(w).then(function () { w = null })
     })
 
     it('should register for file scheme', function (done) {
@@ -190,7 +190,7 @@ describe('chromium feature', function () {
     let w = null
 
     afterEach(() => {
-      return closeWindow(w).then(() => w = null)
+      return closeWindow(w).then(function () { w = null })
     })
 
     it('returns a BrowserWindowProxy object', function () {
@@ -269,7 +269,7 @@ describe('chromium feature', function () {
     it('handles cycles when merging the parent options into the child options', (done) => {
       w = BrowserWindow.fromId(ipcRenderer.sendSync('create-window-with-options-cycle'))
       w.loadURL('file://' + fixtures + '/pages/window-open.html')
-      w.webContents.once('new-window',  (event, url, frameName, disposition, options) => {
+      w.webContents.once('new-window', (event, url, frameName, disposition, options) => {
         assert.equal(options.show, false)
         assert.deepEqual(options.foo, {
           bar: null,
@@ -340,7 +340,7 @@ describe('chromium feature', function () {
     let w = null
 
     afterEach(function () {
-      return closeWindow(w).then(() => w = null)
+      return closeWindow(w).then(function () { w = null })
     })
 
     it('is null for main window', function (done) {
index 5713783..b9d7d94 100644 (file)
@@ -231,12 +231,11 @@ ipcMain.on('close-on-will-navigate', (event, id) => {
   })
 })
 
-
 ipcMain.on('create-window-with-options-cycle', (event) => {
   // This can't be done over remote since cycles are already
   // nulled out at the IPC layer
   const foo = {}
-  foo.bar  = foo
+  foo.bar = foo
   foo.baz = {
     hello: {
       world: true