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

Commit 2735dcf

Browse files
author
Alan Shaw
committed
fix: name.resolve returns an iterable
1 parent eb46323 commit 2735dcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/name-pubsub/subs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* eslint-env mocha */
22
'use strict'
33

4+
const all = require('it-all')
45
const { getDescribe, getIt, expect } = require('../utils/mocha')
56

67
/** @typedef { import("ipfsd-ctl/src/factory") } Factory */
@@ -36,7 +37,7 @@ module.exports = (common, options) => {
3637
const subs = await ipfs.name.pubsub.subs()
3738
expect(subs).to.eql([]) // initally empty
3839

39-
await expect(ipfs.name.resolve(id)).to.be.rejected()
40+
await expect(all(ipfs.name.resolve(id))).to.be.rejected()
4041

4142
const res = await ipfs.name.pubsub.subs()
4243
expect(res).to.be.an('array').that.does.include(`/ipns/${id}`)

0 commit comments

Comments
 (0)