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

Commit 139080b

Browse files
author
Pedro Santos
committed
fix: repo-stats cli test regex
1 parent e7514de commit 139080b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/cli/repo.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint-disable no-useless-escape */
23
'use strict'
34

45
const { expect } = require('interface-ipfs-core/src/utils/mocha')
@@ -26,7 +27,7 @@ describe('repo', () => runOnAndOff((thing) => {
2627
it('get human readable repo stats', async () => {
2728
const stats = await ipfs('repo stat --human')
2829

29-
expect(stats).to.match(/^RepoSize:\s+[\d.]+\s[PTGMK]?B$/gm)
30-
expect(stats).to.match(/^StorageMax:\s+[\d.]+\s[PTGMK]?B$/gm)
30+
expect(stats).to.match(/^RepoSize:\s+[\d\.]+\s[PTGMK]?B$/gm)
31+
expect(stats).to.match(/^StorageMax:\s+[\d\.]+\s[PTGMK]?B$/gm)
3132
})
3233
}))

0 commit comments

Comments
 (0)