Explicitly skip tests that should be skipped

This commit is contained in:
Aleksei Kuzmin 2017-11-16 00:05:46 +03:00
parent 42d7d51b75
commit cf749a8e18
19 changed files with 675 additions and 262 deletions

View file

@ -4,7 +4,11 @@ const assert = require('assert')
const isCI = require('electron').remote.getGlobal('isCi')
describe('globalShortcut module', () => {
if (isCI && process.platform === 'win32') return
before(function () {
if (isCI && process.platform === 'win32') {
this.skip()
}
})
beforeEach(() => {
globalShortcut.unregisterAll()