rename disks to filesystems

This commit is contained in:
Girish Ramakrishnan
2024-11-30 11:46:28 +01:00
parent f219abf082
commit 56f6519b3e
5 changed files with 44 additions and 40 deletions

View File

@@ -16,11 +16,11 @@ describe('System', function () {
before(setup);
after(cleanup);
it('can get disks', async function () {
it('can get filesystems', async 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._getFilesystems();
expect(disks).to.be.ok();
expect(Object.keys(disks).some(fs => disks[fs].mountpoint === '/')).to.be.ok();
});