git ssb

4+

Dominic / scuttlebot



Commit 3d5c31d8a965c27d70e5d75efdfbe61f89aee66b

remove unnecessary tests

Dominic Tarr committed on 3/13/2018, 3:31:33 AM
Parent: 80a0cae5ef85d02465ff1390a3c475d47c774ee2

Files changed

index.jschanged
test/createMultipleServers.jsdeleted
test/multiple-sbots.jsadded
index.jsView
@@ -163,8 +163,8 @@
163163 appKey: require('./lib/ssb-cap')
164164 })
165165 .use(SSB)
166166 }
167-const stack = createSbot()
168-stack.createSbot = createSbot
167 +module.exports = createSbot()
168 +module.exports.createSbot = createSbot
169169
170-module.exports = stack
170 +
test/createMultipleServers.jsView
@@ -1,24 +1,0 @@
1-var tape = require('tape')
2-
3-tape('existing api will throw if trying to create multiple servers with the same plugin', function (t) {
4- require('../')
5- .use(require('../plugins/replicate'))
6- t.throws(() => {
7- require('../')
8- .use(require('../plugins/replicate'))
9- .use(require('../plugins/gossip'))
10- })
11- t.end()
12-})
13-
14-tape('createSbot method allows creating multiple servers with the same plugins', function (t) {
15- var createSbot = require('../').createSbot
16-
17- var sbot1 = createSbot()
18- .use(require('../plugins/replicate'))
19- var sbot2 = createSbot()
20- .use(require('../plugins/replicate'))
21- .use(require('../plugins/gossip'))
22- t.pass()
23- t.end()
24-})
test/multiple-sbots.jsView
@@ -1,0 +1,14 @@
1 +var tape = require('tape')
2 +
3 +tape('createSbot method allows creating multiple servers with the same plugins', function (t) {
4 + var createSbot = require('../').createSbot
5 +
6 + var sbot1 = createSbot()
7 + .use(require('../plugins/replicate'))
8 + var sbot2 = createSbot()
9 + .use(require('../plugins/replicate'))
10 + .use(require('../plugins/gossip'))
11 + t.pass()
12 + t.end()
13 +})
14 +

Built with git-ssb-web