Skip to content

Commit

Permalink
remove extraneous variables
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Dec 1, 2017
1 parent af64895 commit 45de1e6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
13 changes: 2 additions & 11 deletions spec/api-ipc-main-spec.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
'use strict'

const assert = require('assert')
const http = require('http')
const path = require('path')
const {closeWindow} = require('./window-helpers')

const {ipcRenderer, remote} = require('electron')
const {ipcMain, webContents, BrowserWindow} = remote

const comparePaths = (path1, path2) => {
if (process.platform === 'win32') {
path1 = path1.toLowerCase()
path2 = path2.toLowerCase()
}
assert.equal(path1, path2)
}
const {remote} = require('electron')
const {ipcMain, BrowserWindow} = remote

describe('ipc main module', () => {
const fixtures = path.join(__dirname, 'fixtures')
Expand Down
8 changes: 0 additions & 8 deletions spec/api-ipc-renderer-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ const {closeWindow} = require('./window-helpers')
const {ipcRenderer, remote} = require('electron')
const {ipcMain, webContents, BrowserWindow} = remote

const comparePaths = (path1, path2) => {
if (process.platform === 'win32') {
path1 = path1.toLowerCase()
path2 = path2.toLowerCase()
}
assert.equal(path1, path2)
}

describe('ipc renderer module', () => {
const fixtures = path.join(__dirname, 'fixtures')

Expand Down
2 changes: 0 additions & 2 deletions spec/api-remote-spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const assert = require('assert')
const http = require('http')
const path = require('path')
const {closeWindow} = require('./window-helpers')

Expand Down Expand Up @@ -372,4 +371,3 @@ describe('remote module', () => {
})
})
})

0 comments on commit 45de1e6

Please sign in to comment.