diff --git a/spec/api-ipc-main-spec.js b/spec/api-ipc-main-spec.js index 642324766ec8..63e0e24bdc34 100644 --- a/spec/api-ipc-main-spec.js +++ b/spec/api-ipc-main-spec.js @@ -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') diff --git a/spec/api-ipc-renderer-spec.js b/spec/api-ipc-renderer-spec.js index 283065d36c11..679637d52e0c 100644 --- a/spec/api-ipc-renderer-spec.js +++ b/spec/api-ipc-renderer-spec.js @@ -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') diff --git a/spec/api-remote-spec.js b/spec/api-remote-spec.js index 48842aa3aa23..bf20e7feaef5 100644 --- a/spec/api-remote-spec.js +++ b/spec/api-remote-spec.js @@ -1,7 +1,6 @@ 'use strict' const assert = require('assert') -const http = require('http') const path = require('path') const {closeWindow} = require('./window-helpers') @@ -372,4 +371,3 @@ describe('remote module', () => { }) }) }) -