add system.du

This commit is contained in:
Girish Ramakrishnan
2022-10-11 22:58:12 +02:00
parent 760301ce02
commit 656f3fcc13
6 changed files with 54 additions and 4 deletions

View File

@@ -36,5 +36,12 @@ describe('System', function () {
expect(memory.memory).to.be.a('number');
expect(memory.swap).to.be.a('number');
});
it('can get du', async function () {
const usage = await system.du(__dirname);
expect(usage).to.be.a('number');
console.log(usage);
});
});