small tweak to process spec
This commit is contained in:
parent
13fc080213
commit
e64e9995b6
1 changed files with 7 additions and 8 deletions
|
@ -1,19 +1,18 @@
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
|
|
||||||
describe('process module', function () {
|
describe('process module', () => {
|
||||||
describe('process.getCPUUsage()', function () {
|
describe('process.getCPUUsage()', () => {
|
||||||
it('returns a cpu usage object', function () {
|
it('returns a cpu usage object', () => {
|
||||||
const cpuUsage = process.getCPUUsage()
|
const cpuUsage = process.getCPUUsage()
|
||||||
assert.equal(typeof cpuUsage.percentCPUUsage, 'number')
|
assert.equal(typeof cpuUsage.percentCPUUsage, 'number')
|
||||||
assert.equal(typeof cpuUsage.idleWakeupsPerSecond, 'number')
|
assert.equal(typeof cpuUsage.idleWakeupsPerSecond, 'number')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('process.getIOCounters()', function () {
|
describe('process.getIOCounters()', () => {
|
||||||
it('returns an io counters object', function () {
|
it('returns an io counters object', () => {
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') return
|
||||||
return
|
|
||||||
}
|
|
||||||
const ioCounters = process.getIOCounters()
|
const ioCounters = process.getIOCounters()
|
||||||
assert.equal(typeof ioCounters.readOperationCount, 'number')
|
assert.equal(typeof ioCounters.readOperationCount, 'number')
|
||||||
assert.equal(typeof ioCounters.writeOperationCount, 'number')
|
assert.equal(typeof ioCounters.writeOperationCount, 'number')
|
||||||
|
|
Loading…
Reference in a new issue