diff --git a/spec/api-global-shortcut-spec.js b/spec/api-global-shortcut-spec.js index 2031d4556fa6..3d200d6ad853 100644 --- a/spec/api-global-shortcut-spec.js +++ b/spec/api-global-shortcut-spec.js @@ -1,12 +1,10 @@ -const {globalShortcut} = require('electron').remote +const {globalShortcut, remote} = require('electron') const assert = require('assert') -const isCI = require('electron').remote.getGlobal('isCi') +const isCI = remote.getGlobal('isCi') describe('globalShortcut module', () => { - if (isCI && process.platform === 'win32') { - return - } + if (isCI && process.platform === 'win32') return beforeEach(() => { globalShortcut.unregisterAll()