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

Commit

Permalink
chore: add repo-stat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Santos committed Nov 7, 2019
1 parent 607b531 commit 0b364e0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/cli/repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,14 @@ describe('repo', () => runOnAndOff((thing) => {
const out = await ipfs('repo version')
expect(out).to.eql(`${repoVersion}\n`)
})

it('get repo stats', async () => {
const stats = await ipfs('repo stat')
expect(stats).to.not.include('MB').and.not.include('GB')
})

it('get human readable repo stats', async () => {
const stats = await ipfs('repo stat --human')
expect(stats).to.include('MB').and.include('GB')
})
}))

0 comments on commit 0b364e0

Please sign in to comment.