feat(cli): add support for specifying type and size (#122)

This commit is contained in:
Jacob Heun
2020-04-22 16:32:38 +02:00
committed by GitHub
parent 3598a433dc
commit 8cd9dfb137
4 changed files with 18 additions and 2 deletions

View File

@ -63,6 +63,7 @@ describe('PeerId', () => {
const id = await PeerId.create(testOpts)
expect(id.toB58String().length).to.equal(46)
expect(() => {
// @ts-ignore
id.id = Buffer.from('hello')
}).to.throw(/immutable/)
})