system: dmi information
This commit is contained in:
@@ -52,7 +52,14 @@ describe('System', function () {
|
||||
expect(cpus).to.be.an(Array);
|
||||
expect(cpus[0].model).to.be.a('string');
|
||||
});
|
||||
|
||||
|
||||
it('can get DMI', async function () {
|
||||
const dmi = await system.getDmi();
|
||||
|
||||
expect(dmi.sysVendor).to.be.a('string');
|
||||
expect(dmi.productName).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