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

Commit 01044a1

Browse files
committed
fix: added missing test files
1 parent a72624a commit 01044a1

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/* eslint-env mocha */
2+
3+
'use strict'
4+
5+
const test = require('interface-ipfs-core')
6+
const FactoryClient = require('../factory/factory-client')
7+
const PubsubMessage = require('../../src/pubsub-message')
8+
const PubsubMessageUtils = require('../../src/pubsub-message-utils')
9+
10+
let fc
11+
12+
const common = {
13+
setup: function (callback) {
14+
fc = new FactoryClient()
15+
callback(null, fc)
16+
},
17+
teardown: function (callback) {
18+
fc.dismantle(callback)
19+
}
20+
}
21+
22+
// Pass the components down to the tests
23+
test.pubsubMessage(common, {
24+
PubsubMessageUtils: PubsubMessageUtils,
25+
PubsubMessage: PubsubMessage,
26+
})
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* eslint-env mocha */
2+
3+
'use strict'
4+
5+
const test = require('interface-ipfs-core')
6+
const FactoryClient = require('../factory/factory-client')
7+
8+
let fc
9+
10+
const common = {
11+
setup: function (callback) {
12+
fc = new FactoryClient()
13+
callback(null, fc)
14+
},
15+
teardown: function (callback) {
16+
fc.dismantle(callback)
17+
}
18+
}
19+
20+
test.pubsub(common)

0 commit comments

Comments
 (0)