Browse Source

fix shortcut spec error

Shelley Vohr 7 years ago
parent
commit
abecde0572
1 changed files with 4 additions and 4 deletions
  1. 4 4
      spec/api-global-shortcut-spec.js

+ 4 - 4
spec/api-global-shortcut-spec.js

@@ -1,9 +1,9 @@
-const {globalShortcut, remote} = require('electron')
-const assert = require('assert')
+const {globalShortcut} = require('electron').remote
 
-const isCI = remote.getGlobal('isCi')
+const assert = require('assert')
+const isCI = require('electron').remote.getGlobal('isCi')
 
-describe('globalShortcut module', () => {
+describe.only('globalShortcut module', () => {
   if (isCI && process.platform === 'win32') return
 
   beforeEach(() => {