add system.du

This commit is contained in:
Girish Ramakrishnan
2022-10-11 22:58:12 +02:00
parent 760301ce02
commit 656f3fcc13
6 changed files with 54 additions and 4 deletions
+1 -1
View File
@@ -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);
});
+1 -1
View File
@@ -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" \
+7
View File
@@ -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);
});
});