system: dmi information

This commit is contained in:
Girish Ramakrishnan
2023-12-04 00:31:18 +01:00
parent 8a20b603f5
commit 72083f59cd
5 changed files with 43 additions and 3 deletions

View File

@@ -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