remove extraneous variables
This commit is contained in:
parent
af6489576a
commit
45de1e6a7c
3 changed files with 2 additions and 21 deletions
|
@ -1,20 +1,11 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
const http = require('http')
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const {closeWindow} = require('./window-helpers')
|
const {closeWindow} = require('./window-helpers')
|
||||||
|
|
||||||
const {ipcRenderer, remote} = require('electron')
|
const {remote} = require('electron')
|
||||||
const {ipcMain, webContents, BrowserWindow} = remote
|
const {ipcMain, BrowserWindow} = remote
|
||||||
|
|
||||||
const comparePaths = (path1, path2) => {
|
|
||||||
if (process.platform === 'win32') {
|
|
||||||
path1 = path1.toLowerCase()
|
|
||||||
path2 = path2.toLowerCase()
|
|
||||||
}
|
|
||||||
assert.equal(path1, path2)
|
|
||||||
}
|
|
||||||
|
|
||||||
describe('ipc main module', () => {
|
describe('ipc main module', () => {
|
||||||
const fixtures = path.join(__dirname, 'fixtures')
|
const fixtures = path.join(__dirname, 'fixtures')
|
||||||
|
|
|
@ -8,14 +8,6 @@ const {closeWindow} = require('./window-helpers')
|
||||||
const {ipcRenderer, remote} = require('electron')
|
const {ipcRenderer, remote} = require('electron')
|
||||||
const {ipcMain, webContents, BrowserWindow} = remote
|
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', () => {
|
describe('ipc renderer module', () => {
|
||||||
const fixtures = path.join(__dirname, 'fixtures')
|
const fixtures = path.join(__dirname, 'fixtures')
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
const http = require('http')
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const {closeWindow} = require('./window-helpers')
|
const {closeWindow} = require('./window-helpers')
|
||||||
|
|
||||||
|
@ -372,4 +371,3 @@ describe('remote module', () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue