system: cpu route
This commit is contained in:
@@ -47,6 +47,12 @@ describe('System', function () {
|
||||
expect(memory.swap).to.be.a('number');
|
||||
});
|
||||
|
||||
it('can get CPUs', async function () {
|
||||
const cpus = await system.getCpus();
|
||||
expect(cpus).to.be.an(Array);
|
||||
expect(cpus[0].model).to.be.a('string');
|
||||
});
|
||||
|
||||
it('can get diskUsage', async function () {
|
||||
const usage = await system.getDiskUsage();
|
||||
expect(usage).to.be(null); // nothing cached
|
||||
|
||||
Reference in New Issue
Block a user