mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-08-01 00:41:57 +00:00
feat: custom announce filter
This commit is contained in:
committed by
Vasco Santos
parent
97e3633f47
commit
ef9d3ca2c6
@@ -73,9 +73,9 @@ describe('keychain', () => {
|
||||
it('can find a key without a password', async () => {
|
||||
const keychain = new Keychain(datastore2)
|
||||
const keychainWithPassword = new Keychain(datastore2, { passPhrase: `hello-${Date.now()}-${Date.now()}` })
|
||||
const id = `key-${Math.random()}`
|
||||
const name = `key-${Math.random()}`
|
||||
|
||||
await keychainWithPassword.createKey(id, 'ed25519')
|
||||
const { id } = await keychainWithPassword.createKey(name, 'ed25519')
|
||||
|
||||
await expect(keychain.findKeyById(id)).to.eventually.be.ok()
|
||||
})
|
||||
|
Reference in New Issue
Block a user