Skip to content

Commit fb108d5

Browse files
authored
chore: export multicodec (#83)
1 parent d11a35c commit fb108d5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,4 @@ class FloodSub extends BaseProtocol {
259259
}
260260

261261
module.exports = FloodSub
262+
module.exports.multicodec = multicodec

test/pubsub.spec.js

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ describe('pubsub', () => {
1616
let libp2p
1717

1818
before((done) => {
19+
expect(Floodsub.multicodec).to.exist()
20+
1921
createNode((err, node) => {
2022
expect(err).to.not.exist()
2123
libp2p = node

0 commit comments

Comments
 (0)