mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
chore: Lint fix.
This commit is contained in:
parent
1c3b99c605
commit
04e9e8d7e4
@ -2,7 +2,6 @@ import { strictEqual, deepStrictEqual, notStrictEqual } from 'assert'
|
||||
import { rimraf } from 'rimraf'
|
||||
import OrbitDB from '../src/orbitdb.js'
|
||||
import { IPFSAccessController, OrbitDBAccessController, useAccessController, getAccessController } from '../src/access-controllers/index.js'
|
||||
import config from './config.js'
|
||||
import pathJoin from '../src/utils/path-join.js'
|
||||
import createHelia from './utils/create-helia.js'
|
||||
|
||||
@ -25,7 +24,6 @@ describe('Add a custom access controller', function () {
|
||||
let orbitdb
|
||||
|
||||
before(async () => {
|
||||
// ipfs = await IPFS.create({ ...config.daemon1, repo: './ipfs1' })
|
||||
ipfs = await createHelia()
|
||||
orbitdb = await OrbitDB({ ipfs })
|
||||
})
|
||||
@ -39,9 +37,6 @@ describe('Add a custom access controller', function () {
|
||||
await ipfs.stop()
|
||||
}
|
||||
|
||||
// Remove the added custom database type from OrbitDB import
|
||||
removeAccessController(type)
|
||||
|
||||
await rimraf('./orbitdb')
|
||||
await rimraf('./ipfs1')
|
||||
})
|
||||
|
@ -15,7 +15,7 @@ const connectIpfsNodes = async (ipfs1, ipfs2, options = {
|
||||
await ipfs1.libp2p.dial(multiaddr(`/ip4/127.0.0.1/tcp/12345/ws/p2p/${relayId}`))
|
||||
|
||||
let a1
|
||||
|
||||
|
||||
await waitFor(() => {
|
||||
a1 = ipfs1.libp2p.getMultiaddrs().filter(ma => WebRTC.matches(ma)).pop()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user