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

Commit 76a1153

Browse files
alanshawAlan Shaw
authored and
Alan Shaw
committed
feat: add cid-base option to object.new
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 85e4e92 commit 76a1153

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/cli/object.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ describe('object', () => runOnAndOff((thing) => {
4141
})
4242
})
4343

44+
it('should new and print CID encoded in specified base', () => {
45+
return ipfs('object new --cid-base=base32').then((out) => {
46+
expect(out).to.eql(
47+
'bafybeihdwdcefgh4dqkjv67uzcmw7ojee6xedzdetojuzjevtenxquvyku\n'
48+
)
49+
})
50+
})
51+
4452
it('get', () => {
4553
return ipfs('object get QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n').then((out) => {
4654
const result = JSON.parse(out)

0 commit comments

Comments
 (0)