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

Commit 6b06e0e

Browse files
author
Pedro Santos
committed
fix: fix repo stats tests assertions
1 parent 93eff8e commit 6b06e0e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/cli/repo.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ describe('repo', () => runOnAndOff((thing) => {
1919

2020
it('get repo stats', async () => {
2121
const stats = await ipfs('repo stat')
22-
expect(stats).to.match(/^\s+repo\ssize:\s+\d+$/gm)
23-
expect(stats).to.match(/^\s+maximum\sstorage:\s+\d+$/gm)
22+
expect(stats).to.match(/^RepoSize:\s+\d+$/gm)
23+
expect(stats).to.match(/^StorageMax:\s+\d+$/gm)
2424
})
2525

2626
it('get human readable repo stats', async () => {
2727
const stats = await ipfs('repo stat --human')
28-
expect(stats).to.include('MB').and.include('GB')
28+
29+
expect(stats).to.match(/\s.?B$/gm)
2930
})
3031
}))

0 commit comments

Comments
 (0)