feat: custom announce filter

This commit is contained in:
Vasco Santos
2020-10-15 15:31:33 +01:00
committed by Vasco Santos
parent 97e3633f47
commit ef9d3ca2c6
43 changed files with 75 additions and 147 deletions

View File

@@ -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()
})