Commit 391163e63d7f2d8f4b5c8568fb7bfe8c355a54d0
port tests to ssb-server@14
Henry committed on 2/6/2019, 12:49:01 PMParent: 632d3f5383d2ae590febccc0988ee9be02b0ba88
Files changed
package.json | changed |
test/accept.js | changed |
test/accept2.js | changed |
test/accept3.js | changed |
test/accept4.js | changed |
test/accept5.js | changed |
test/error-without-pubs.js | changed |
test/invite-with-pubs.js | changed |
test/will-replicate.js | changed |
package.json | ||
---|---|---|
@@ -19,11 +19,16 @@ | ||
19 | 19 … | "ssb-ref": "^2.13.9" |
20 | 20 … | }, |
21 | 21 … | "devDependencies": { |
22 | 22 … | "explain-error": "^1.0.4", |
23 | - "scuttlebot": "^13.2.2", | |
24 | 23 … | "ssb-device-address": "^1.1.2", |
24 … | + "ssb-friends": "^3.1.12", | |
25 … | + "ssb-gossip": "^1.0.4", | |
25 | 26 … | "ssb-identities": "^2.0.7", |
27 … | + "ssb-links": "^3.0.4", | |
28 … | + "ssb-query": "^2.3.0", | |
29 … | + "ssb-replicate": "^1.0.4", | |
30 … | + "ssb-server": "^14.0.0", | |
26 | 31 … | "ssb-validate": "^3.0.1", |
27 | 32 … | "tape": "^4.9.2" |
28 | 33 … | }, |
29 | 34 … | "scripts": { |
test/accept.js | ||
---|---|---|
@@ -5,9 +5,9 @@ | ||
5 | 5 … | var pull = require('pull-stream') |
6 | 6 … | |
7 | 7 … | var I = require('../valid') |
8 | 8 … | |
9 | -var createSbot = require('scuttlebot') | |
9 … | +var createSbot = require('ssb-server') | |
10 | 10 … | .use(require('ssb-links')) |
11 | 11 … | .use({ |
12 | 12 … | name: 'replicate', version: '1.0.0', |
13 | 13 … | manifest: { request: 'sync' }, |
test/accept2.js | ||
---|---|---|
@@ -6,9 +6,9 @@ | ||
6 | 6 … | var ssbKeys = require('ssb-keys') |
7 | 7 … | var tape = require('tape') |
8 | 8 … | var pull = require('pull-stream') |
9 | 9 … | |
10 | -var createSbot = require('scuttlebot') | |
10 … | +var createSbot = require('ssb-server') | |
11 | 11 … | .use(require('ssb-links')) |
12 | 12 … | .use({ |
13 | 13 … | name: 'replicate', version: '1.0.0', |
14 | 14 … | manifest: { request: 'sync' }, |
test/accept3.js | ||
---|---|---|
@@ -7,9 +7,9 @@ | ||
7 | 7 … | var tape = require('tape') |
8 | 8 … | var pull = require('pull-stream') |
9 | 9 … | var ref = require('ssb-ref') |
10 | 10 … | |
11 | -var createSbot = require('scuttlebot') | |
11 … | +var createSbot = require('ssb-server') | |
12 | 12 … | .use(require('ssb-links')) |
13 | 13 … | .use({ |
14 | 14 … | name: 'replicate', version: '1.0.0', |
15 | 15 … | manifest: { request: 'sync' }, |
test/accept4.js | ||
---|---|---|
@@ -5,9 +5,9 @@ | ||
5 | 5 … | var ssbKeys = require('ssb-keys') |
6 | 6 … | var tape = require('tape') |
7 | 7 … | var pull = require('pull-stream') |
8 | 8 … | |
9 | -var createSbot = require('scuttlebot') | |
9 … | +var createSbot = require('ssb-server') | |
10 | 10 … | .use(require('ssb-links')) |
11 | 11 … | .use({ |
12 | 12 … | name: 'replicate', version: '1.0.0', |
13 | 13 … | manifest: { request: 'sync' }, |
test/accept5.js | ||
---|---|---|
@@ -5,9 +5,9 @@ | ||
5 | 5 … | var ssbKeys = require('ssb-keys') |
6 | 6 … | var tape = require('tape') |
7 | 7 … | var pull = require('pull-stream') |
8 | 8 … | |
9 | -var createSbot = require('scuttlebot') | |
9 … | +var createSbot = require('ssb-server') | |
10 | 10 … | .use(require('ssb-links')) |
11 | 11 … | .use({ |
12 | 12 … | name: 'replicate', version: '1.0.0', |
13 | 13 … | manifest: { request: 'sync' }, |
test/error-without-pubs.js | ||
---|---|---|
@@ -4,9 +4,9 @@ | ||
4 | 4 … | var ssbKeys = require('ssb-keys') |
5 | 5 … | var tape = require('tape') |
6 | 6 … | var pull = require('pull-stream') |
7 | 7 … | |
8 | -var createSbot = require('scuttlebot') | |
8 … | +var createSbot = require('ssb-server') | |
9 | 9 … | .use(require('ssb-links')) |
10 | 10 … | .use({ |
11 | 11 … | name: 'replicate', version: '1.0.0', |
12 | 12 … | manifest: { request: 'sync' }, |
test/invite-with-pubs.js | ||
---|---|---|
@@ -3,12 +3,12 @@ | ||
3 | 3 … | var tape = require('tape') |
4 | 4 … | |
5 | 5 … | var u = require('../util') |
6 | 6 … | |
7 | -var createSbot = require('scuttlebot') | |
7 … | +var createSbot = require('ssb-server') | |
8 | 8 … | .use(require('ssb-links')) |
9 | - .use(require('scuttlebot/plugins/replicate')) | |
10 | - .use(require('scuttlebot/plugins/gossip')) | |
9 … | + .use(require('ssb-replicate')) | |
10 … | + .use(require('ssb-gossip')) | |
11 | 11 … | .use(require('ssb-query')) |
12 | 12 … | .use(require('ssb-device-address')) |
13 | 13 … | .use(require('ssb-identities')) |
14 | 14 … | .use(require('ssb-friends')) |
test/will-replicate.js | ||
---|---|---|
@@ -1,8 +1,8 @@ | ||
1 | 1 … | var ssbKeys = require('ssb-keys') |
2 | 2 … | var tape = require('tape') |
3 | 3 … | |
4 | -var createSbot = require('scuttlebot') | |
4 … | +var createSbot = require('ssb-server') | |
5 | 5 … | .use(require('ssb-links')) |
6 | 6 … | .use({ |
7 | 7 … | name: 'replicate', version: '1.0.0', |
8 | 8 … | manifest: { request: 'sync' }, |
Built with git-ssb-web