mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-03-16 21:10:54 +00:00
chore: update aegir
This commit is contained in:
parent
56996811c3
commit
3f83a4afc7
@ -31,11 +31,12 @@
|
||||
},
|
||||
"homepage": "https://github.com/diasdavid/interface-transport",
|
||||
"devDependencies": {
|
||||
"aegir": "^10.0.0"
|
||||
"aegir": "^11.0.0",
|
||||
"dirty-chai": "^1.2.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"chai": "^3.5.0",
|
||||
"multiaddr": "^2.2.1",
|
||||
"multiaddr": "^2.2.2",
|
||||
"pull-goodbye": "0.0.1",
|
||||
"pull-serializer": "^0.3.2",
|
||||
"pull-stream": "^3.5.0"
|
||||
@ -46,4 +47,4 @@
|
||||
"Richard Littauer <richard.littauer@gmail.com>",
|
||||
"greenkeeperio-bot <support@greenkeeper.io>"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,10 @@
|
||||
/* eslint-env mocha */
|
||||
'use strict'
|
||||
|
||||
const expect = require('chai').expect
|
||||
const chai = require('chai')
|
||||
const dirtyChai = require('dirty-chai')
|
||||
const expect = chai.expect
|
||||
chai.use(dirtyChai)
|
||||
const pull = require('pull-stream')
|
||||
const goodbye = require('pull-goodbye')
|
||||
const serializer = require('pull-serializer')
|
||||
@ -40,7 +43,7 @@ module.exports = (common) => {
|
||||
const s = serializer(goodbye({
|
||||
source: pull.values(['hey']),
|
||||
sink: pull.collect((err, values) => {
|
||||
expect(err).to.not.exist
|
||||
expect(err).to.not.exist()
|
||||
expect(
|
||||
values
|
||||
).to.be.eql(
|
||||
@ -61,7 +64,7 @@ module.exports = (common) => {
|
||||
pull(
|
||||
transport.dial(addrs[1]),
|
||||
pull.onEnd((err) => {
|
||||
expect(err).to.exist
|
||||
expect(err).to.exist()
|
||||
done()
|
||||
})
|
||||
)
|
||||
|
@ -2,7 +2,11 @@
|
||||
/* eslint-env mocha */
|
||||
'use strict'
|
||||
|
||||
const expect = require('chai').expect
|
||||
const chai = require('chai')
|
||||
const dirtyChai = require('dirty-chai')
|
||||
const expect = chai.expect
|
||||
chai.use(dirtyChai)
|
||||
|
||||
const pull = require('pull-stream')
|
||||
|
||||
module.exports = (common) => {
|
||||
@ -66,7 +70,7 @@ module.exports = (common) => {
|
||||
const listener = transport.createListener()
|
||||
|
||||
listener.on('connection', (conn) => {
|
||||
expect(conn).to.exist
|
||||
expect(conn).to.exist()
|
||||
finish()
|
||||
})
|
||||
|
||||
@ -89,7 +93,7 @@ module.exports = (common) => {
|
||||
it.skip('error', (done) => {
|
||||
const listener = transport.createListener()
|
||||
listener.on('error', (err) => {
|
||||
expect(err).to.exist
|
||||
expect(err).to.exist()
|
||||
listener.close(done)
|
||||
})
|
||||
})
|
||||
|
@ -1,2 +1 @@
|
||||
'use strict'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user