Skip to content

Commit

Permalink
chore: export multicodec (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored Jul 8, 2019
1 parent d11a35c commit fb108d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,4 @@ class FloodSub extends BaseProtocol {
}

module.exports = FloodSub
module.exports.multicodec = multicodec
2 changes: 2 additions & 0 deletions test/pubsub.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ describe('pubsub', () => {
let libp2p

before((done) => {
expect(Floodsub.multicodec).to.exist()

createNode((err, node) => {
expect(err).to.not.exist()
libp2p = node
Expand Down

0 comments on commit fb108d5

Please sign in to comment.