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

Commit

Permalink
Add pubsub tests from interface-ipfs-core.
Browse files Browse the repository at this point in the history
  • Loading branch information
haadcode committed Dec 5, 2016
1 parent 94bbc43 commit 699bd25
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ function IPFS (repoInstance) {
this.files = files(this)
this.bitswap = bitswap(this)
this.ping = ping(this)
this.floodsub = floodsub(this)
this.pubsub = floodsub(this)
}
1 change: 1 addition & 0 deletions test/core/both/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ describe('--both', () => {
require('./test-generic')
require('./test-init')
require('./test-object')
require('./test-pubsub')
})
21 changes: 21 additions & 0 deletions test/core/both/test-pubsub.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* eslint-env mocha */
'use strict'

const test = require('interface-ipfs-core')
const IPFSFactory = require('../../utils/factory-core')

let factory

console.log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")

const common = {
setup: function (cb) {
factory = new IPFSFactory()
cb(null, factory)
},
teardown: function (cb) {
factory.dismantle(cb)
}
}

test.pubsub(common)

0 comments on commit 699bd25

Please sign in to comment.