mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-06-28 04:01:46 +00:00
feat(cli): add support for specifying type and size (#122)
This commit is contained in:
@ -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/)
|
||||
})
|
||||
|
Reference in New Issue
Block a user