mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-25 02:22:14 +00:00
Integrates the libp2p-keychain codebase into this repo Co-authored-by: David Dias <daviddias.p@gmail.com> Co-authored-by: Richard Schneider <makaretu@gmail.com> Co-authored-by: Maciej Krüger <mkg20001@gmail.com> Co-authored-by: Victor Bjelkholm <victorbjelkholm@gmail.com> Co-authored-by: Masahiro Saito <camelmasa@gmail.com> Co-authored-by: Alan Shaw <alan.shaw@protocol.ai> Co-authored-by: Hugo Dias <mail@hugodias.me> Co-authored-by: Alberto Elias <hi@albertoelias.me> Co-authored-by: Alex Potsides <alex@achingbrain.net> Co-authored-by: Jacob Heun <jacobheun@gmail.com>
28 lines
601 B
JavaScript
28 lines
601 B
JavaScript
/* eslint-env mocha */
|
|
'use strict'
|
|
|
|
const LevelStore = require('datastore-level')
|
|
|
|
describe('browser', () => {
|
|
const datastore1 = new LevelStore('test-keystore-1', { db: require('level') })
|
|
const datastore2 = new LevelStore('test-keystore-2', { db: require('level') })
|
|
|
|
before(() => {
|
|
return Promise.all([
|
|
datastore1.open(),
|
|
datastore2.open()
|
|
])
|
|
})
|
|
|
|
after(() => {
|
|
return Promise.all([
|
|
datastore1.close(),
|
|
datastore2.close()
|
|
])
|
|
})
|
|
|
|
require('./keychain.spec')(datastore1, datastore2)
|
|
require('./cms-interop')(datastore2)
|
|
require('./peerid')
|
|
})
|