system: merge info and dmi routes
also return uptimeSecs instead of abstract date
This commit is contained in:
@@ -53,11 +53,13 @@ describe('System', function () {
|
||||
expect(cpus[0].model).to.be.a('string');
|
||||
});
|
||||
|
||||
it('can get DMI', async function () {
|
||||
const dmi = await system.getDmi();
|
||||
it('can get info', async function () {
|
||||
const info = await system.getInfo();
|
||||
|
||||
expect(dmi.sysVendor).to.be.a('string');
|
||||
expect(dmi.productName).to.be.a('string');
|
||||
expect(info.sysVendor).to.be.a('string');
|
||||
expect(info.productName).to.be.a('string');
|
||||
expect(info.uptimeSecs).to.be.a('number');
|
||||
expect(info.rebootRequired).to.be.a('boolean');
|
||||
});
|
||||
|
||||
it('can get diskUsage', async function () {
|
||||
|
||||
Reference in New Issue
Block a user