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

@ -5,8 +5,6 @@ const os = require('os')
const {shell} = require('electron')
describe('shell module', () => {
if (process.platform !== 'win32') return
const fixtures = path.resolve(__dirname, 'fixtures')
const shortcutOptions = {
target: 'C:\\target',
@ -18,6 +16,13 @@ describe('shell module', () => {
iconIndex: 1
}
// (alexeykuzmin): `.skip()` in `before` doesn't work for nested `describe`s.
beforeEach(function () {
if (process.platform !== 'win32') {
this.skip()
}
})
describe('shell.readShortcutLink(shortcutPath)', () => {
it('throws when failed', () => {
assert.throws(() => {