return swap listing in the disk route
This commit is contained in:
@@ -22,7 +22,16 @@ describe('System', function () {
|
||||
|
||||
const disks = await system.getDisks();
|
||||
expect(disks).to.be.ok();
|
||||
expect(disks.some(d => d.mountpoint === '/')).to.be.ok();
|
||||
expect(Object.keys(disks).some(fs => disks[fs].mountpoint === '/')).to.be.ok();
|
||||
});
|
||||
|
||||
it('can get swaps', async function () {
|
||||
// does not work on archlinux 8!
|
||||
if (require('child_process').execSync('uname -a').toString().indexOf('-arch') !== -1) return;
|
||||
|
||||
const swaps = await system.getSwaps();
|
||||
expect(swaps).to.be.ok();
|
||||
expect(Object.keys(swaps).some(n => swaps[n].type === 'partition')).to.be.ok();
|
||||
});
|
||||
|
||||
it('can check for disk space', async function () {
|
||||
|
||||
Reference in New Issue
Block a user