system: make filesystem return value an array
Filesystem of df output is not unique
This commit is contained in:
@@ -26,7 +26,7 @@ describe('System', function () {
|
||||
|
||||
const filesystems = await system.getFilesystems();
|
||||
expect(filesystems).to.be.ok();
|
||||
expect(Object.keys(filesystems).some(fs => filesystems[fs].mountpoint === '/')).to.be.ok();
|
||||
expect(filesystems.some(fs => fs.mountpoint === '/')).to.be(true);
|
||||
});
|
||||
|
||||
it('can get swaps', async function () {
|
||||
|
||||
Reference in New Issue
Block a user