system: expose getDisks only for tests

This commit is contained in:
Girish Ramakrishnan
2024-11-30 10:41:01 +01:00
parent 26caacc12e
commit 742a04d149
2 changed files with 6 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ describe('System', function () {
// does not work on archlinux 8!
if (require('child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
const disks = await system.getDisks();
const disks = await system._getDisks();
expect(disks).to.be.ok();
expect(Object.keys(disks).some(fs => disks[fs].mountpoint === '/')).to.be.ok();
});