Explicitly skip tests that should be skipped
This commit is contained in:
parent
42d7d51b75
commit
cf749a8e18
19 changed files with 675 additions and 262 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue