small tweaks to global shortcut spec
This commit is contained in:
parent
6feff1d6e8
commit
13fc080213
1 changed files with 3 additions and 5 deletions
|
@ -1,12 +1,10 @@
|
||||||
const {globalShortcut} = require('electron').remote
|
const {globalShortcut, remote} = require('electron')
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
||||||
const isCI = require('electron').remote.getGlobal('isCi')
|
const isCI = remote.getGlobal('isCi')
|
||||||
|
|
||||||
describe('globalShortcut module', () => {
|
describe('globalShortcut module', () => {
|
||||||
if (isCI && process.platform === 'win32') {
|
if (isCI && process.platform === 'win32') return
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
globalShortcut.unregisterAll()
|
globalShortcut.unregisterAll()
|
||||||
|
|
Loading…
Reference in a new issue