Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 699bd25

Browse files
committed
Add pubsub tests from interface-ipfs-core.
1 parent 94bbc43 commit 699bd25

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

src/core/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,5 @@ function IPFS (repoInstance) {
6969
this.files = files(this)
7070
this.bitswap = bitswap(this)
7171
this.ping = ping(this)
72-
this.floodsub = floodsub(this)
72+
this.pubsub = floodsub(this)
7373
}

test/core/both/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ describe('--both', () => {
1010
require('./test-generic')
1111
require('./test-init')
1212
require('./test-object')
13+
require('./test-pubsub')
1314
})

test/core/both/test-pubsub.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* eslint-env mocha */
2+
'use strict'
3+
4+
const test = require('interface-ipfs-core')
5+
const IPFSFactory = require('../../utils/factory-core')
6+
7+
let factory
8+
9+
console.log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
10+
11+
const common = {
12+
setup: function (cb) {
13+
factory = new IPFSFactory()
14+
cb(null, factory)
15+
},
16+
teardown: function (cb) {
17+
factory.dismantle(cb)
18+
}
19+
}
20+
21+
test.pubsub(common)

0 commit comments

Comments
 (0)