mirror of
https://github.com/fluencelabs/js-libp2p-tcp
synced 2025-06-26 15:01:48 +00:00
chore: callbacks -> async / await
BREAKING CHANGE: All places in the API that used callbacks are now replaced with async/await
This commit is contained in:
committed by
Jacob Heun
parent
49c7f33375
commit
bc1aeefd0d
@ -7,7 +7,7 @@ const TCP = require('../src')
|
||||
|
||||
describe('interface-transport compliance', () => {
|
||||
tests({
|
||||
setup (cb) {
|
||||
setup () {
|
||||
const tcp = new TCP()
|
||||
const addrs = [
|
||||
multiaddr('/ip4/127.0.0.1/tcp/9091'),
|
||||
@ -15,10 +15,7 @@ describe('interface-transport compliance', () => {
|
||||
multiaddr('/ip4/127.0.0.1/tcp/9093'),
|
||||
multiaddr('/dns4/ipfs.io')
|
||||
]
|
||||
cb(null, tcp, addrs)
|
||||
},
|
||||
teardown (cb) {
|
||||
cb()
|
||||
return { transport: tcp, addrs }
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user