Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 0b364e0

Browse files
author
Pedro Santos
committed
chore: add repo-stat tests
1 parent 607b531 commit 0b364e0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/cli/repo.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,14 @@ describe('repo', () => runOnAndOff((thing) => {
1616
const out = await ipfs('repo version')
1717
expect(out).to.eql(`${repoVersion}\n`)
1818
})
19+
20+
it('get repo stats', async () => {
21+
const stats = await ipfs('repo stat')
22+
expect(stats).to.not.include('MB').and.not.include('GB')
23+
})
24+
25+
it('get human readable repo stats', async () => {
26+
const stats = await ipfs('repo stat --human')
27+
expect(stats).to.include('MB').and.include('GB')
28+
})
1929
}))

0 commit comments

Comments
 (0)