From fc1ea3f89ceca7795e8b2003110384789dc791c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kr=C3=BCger?= Date: Thu, 10 May 2018 10:14:29 +0200 Subject: [PATCH] test: Fix node --- test/node.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/test/node.js b/test/node.js index 570d7f7..7665c6d 100644 --- a/test/node.js +++ b/test/node.js @@ -8,7 +8,6 @@ const expect = chai.expect chai.use(dirtyChai) const multiaddr = require('multiaddr') const pull = require('pull-stream') -const goodbye = require('pull-goodbye') const WS = require('../src') const maToUrl = require('../src/ma-to-url') @@ -171,7 +170,7 @@ describe('dial', () => { it('dial on IPv4', (done) => { const conn = ws.dial(ma) - const s = goodbye({ + const s = { source: pull.values([Buffer.from('hey')]), sink: pull.collect((err, result) => { expect(err).to.not.exist() @@ -179,7 +178,7 @@ describe('dial', () => { expect(result).to.be.eql([Buffer.from('hey')]) done() }) - }) + } pull(s, conn, s) }) @@ -192,7 +191,7 @@ describe('dial', () => { const ma = multiaddr('/ip4/127.0.0.1/tcp/9091/ws/ipfs/Qmb6owHp6eaWArVbcJJbQSyifyJBttMMjYV76N2hMbf5Vw') const conn = ws.dial(ma) - const s = goodbye({ + const s = { source: pull.values([Buffer.from('hey')]), sink: pull.collect((err, result) => { expect(err).to.not.exist() @@ -200,7 +199,7 @@ describe('dial', () => { expect(result).to.be.eql([Buffer.from('hey')]) done() }) - }) + } pull(s, conn, s) }) @@ -510,8 +509,6 @@ describe('ma-to-url test', function () { }) describe.skip('turbolence', () => { - it('dialer - emits error on the other end is terminated abruptly', (done) => { - }) - it('listener - emits error on the other end is terminated abruptly', (done) => { - }) + it('dialer - emits error on the other end is terminated abruptly', (done) => { }) + it('listener - emits error on the other end is terminated abruptly', (done) => { }) })