Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 362f8ef

Browse files
richardschneiderdaviddias
authored andcommitted
test: better way to skip tests
1 parent 016215c commit 362f8ef

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/diag.spec.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,14 @@ const expect = chai.expect
88
chai.use(dirtyChai)
99
const os = require('os')
1010

11-
if (os.platform() === 'win32') {
12-
describe.skip('.diag', () => {
13-
it('NYI on Windows', () => {})
14-
})
15-
return
16-
}
17-
1811
describe('.diag', function () {
1912
this.timeout(50 * 1000)
2013

14+
if (os.platform() === 'win32') {
15+
it('skip these on Windows')
16+
return
17+
}
18+
2119
let ipfs
2220
let fc
2321

0 commit comments

Comments
 (0)