Commit db370ac2170a0f2ea907514f2076114b4df0e29e
note about problem with tests
Dominic Tarr committed on 9/26/2017, 4:23:01 AMParent: b626e54fb122fbc24c01380a0defcf468615379f
Files changed
test/invite.js | changed |
test/invite.js | ||
---|---|---|
@@ -1,4 +1,6 @@ | ||
1 … | +//WARNING: this test currently only passes | |
2 … | +//if the computer has a network. | |
1 | 3 … | var sbot = require('../') |
2 | 4 … | var ssbKeys = require('ssb-keys') |
3 | 5 … | var tape = require('tape') |
4 | 6 … | var explain = require('explain-error') |
@@ -41,8 +43,9 @@ | ||
41 | 43 … | |
42 | 44 … | alice.invite.create(1, function (err, invite) { |
43 | 45 … | if(err) throw err |
44 | 46 … | //test that invite is accepted with quotes around it. |
47 … | + console.log('INVITE', invite) | |
45 | 48 … | bob.invite.accept(JSON.stringify(invite), function (err) { |
46 | 49 … | if(err) throw err |
47 | 50 … | alice.friends.hops({ |
48 | 51 … | source: alice.id, dest: bob.id |
@@ -147,9 +150,8 @@ | ||
147 | 150 … | alice.invite.create(1, function (err, invite) { |
148 | 151 … | if(err) throw err |
149 | 152 … | |
150 | 153 … | // use a local ipv6 address in the invite |
151 | -// if(/localhost/.test(invite)) | |
152 | 154 … | |
153 | 155 … | var inviteV6 |
154 | 156 … | |
155 | 157 … | = invite.replace(/localhost|([0-9.]*)/, '::1') |
@@ -193,8 +195,9 @@ | ||
193 | 195 … | alice.invite.create({modern: true}, function (err, invite) { |
194 | 196 … | if(err) throw err |
195 | 197 … | //test that invite is accepted with quotes around it. |
196 | 198 … | t.ok(/^ws/.test(invite)) //should be over websockets |
199 … | + console.log(invite) | |
197 | 200 … | bob.invite.accept(JSON.stringify(invite), function (err, msg) { |
198 | 201 … | if(err) throw err |
199 | 202 … | alice.friends.hops({ |
200 | 203 … | source: alice.id, dest: bob.id |
@@ -202,9 +205,8 @@ | ||
202 | 205 … | if(err) throw err |
203 | 206 … | t.equal(hops[bob.id], 1, 'alice follows bob') |
204 | 207 … | carol.invite.accept(invite, function (err) { |
205 | 208 … | t.ok(err) |
206 | -// if(err) throw err | |
207 | 209 … | alice.friends.hops({ |
208 | 210 … | source: alice.id, dest: bob.id |
209 | 211 … | }, function (err, hops) { |
210 | 212 … | if(err) throw err |
@@ -250,10 +252,8 @@ | ||
250 | 252 … | }) |
251 | 253 … | }) |
252 | 254 … | }) |
253 | 255 … | }) |
254 | - | |
255 | - | |
256 | 256 … | }) |
257 | 257 … | |
258 | 258 … | |
259 | 259 … | tape('test invite with note', function (t) { |
@@ -294,5 +294,4 @@ | ||
294 | 294 … | }) |
295 | 295 … | |
296 | 296 … | |
297 | 297 … | |
298 | - |
Built with git-ssb-web