add system.du
This commit is contained in:
@@ -52,7 +52,7 @@ describe('Applinks', function () {
|
||||
APPLINK_2.id = await applinks.add(JSON.parse(JSON.stringify(APPLINK_2)));
|
||||
|
||||
const result = await applinks.get(APPLINK_2.id);
|
||||
expect(result.upstreamUri).to.eql('https://www.google.com/');
|
||||
expect(result.upstreamUri).to.eql('https://google.com/');
|
||||
expect(result.icon.length).to.not.eql(0);
|
||||
});
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ scripts=("${SOURCE_DIR}/src/scripts/clearvolume.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/restartservice.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/update.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/collectlogs.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/configurecollectd.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/du.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/remotesupport.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/starttask.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/stoptask.sh" \
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user