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
|
@ -10,9 +10,13 @@ describe('process module', () => {
|
|||
})
|
||||
|
||||
describe('process.getIOCounters()', () => {
|
||||
it('returns an io counters object', () => {
|
||||
if (process.platform === 'darwin') return
|
||||
before(function () {
|
||||
if (process.platform === 'darwin') {
|
||||
this.skip()
|
||||
}
|
||||
})
|
||||
|
||||
it('returns an io counters object', () => {
|
||||
const ioCounters = process.getIOCounters()
|
||||
assert.equal(typeof ioCounters.readOperationCount, 'number')
|
||||
assert.equal(typeof ioCounters.writeOperationCount, 'number')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue