Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: async auto
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Dec 3, 2018
1 parent d268add commit c6995d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/src/name-pubsub/cancel.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ module.exports = (createCommon, options) => {
expect(err).to.exist()
auto({
subs1: (cb) => ipfs.name.pubsub.subs(cb),
cancel: (cb) => ipfs.name.pubsub.cancel(ipnsPath, cb),
subs2: (cb) => ipfs.name.pubsub.subs(cb)
}, 1, (err, res) => {
cancel: ['subs1', (_, cb) => ipfs.name.pubsub.cancel(ipnsPath, cb)],
subs2: ['cancel', (_, cb) => ipfs.name.pubsub.subs(cb)]
}, (err, res) => {
expect(err).to.not.exist()
expect(res).to.exist()
expect(res.subs1).to.be.an('array').that.does.include(ipnsPath)
Expand Down

0 comments on commit c6995d6

Please sign in to comment.