Browse Source

small tweaks to global shortcut spec

Shelley Vohr 7 years ago
parent
commit
13fc080213
1 changed files with 3 additions and 5 deletions
  1. 3 5
      spec/api-global-shortcut-spec.js

+ 3 - 5
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()