This repository was archived by the owner on Mar 10, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
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
+ } )
Original file line number Diff line number Diff line change
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 )
You can’t perform that action at this time.
0 commit comments