@@ -375,14 +375,14 @@ module.exports = (common) => {
375
375
376
376
const sub1 = ( msg ) => {
377
377
expect ( msg . data . toString ( ) ) . to . be . eql ( expectedString )
378
- expect ( msg . from ) . to . be . eql ( ipfs2 . peerId . id )
378
+ expect ( msg . from ) . to . eql ( ipfs2 . peerId . id )
379
379
ipfs1 . pubsub . unsubscribe ( topic , sub1 )
380
380
check ( )
381
381
}
382
382
383
383
const sub2 = ( msg ) => {
384
384
expect ( msg . data . toString ( ) ) . to . be . eql ( expectedString )
385
- expect ( msg . from ) . to . be . eql ( ipfs2 . peerId . id )
385
+ expect ( msg . from ) . to . eql ( ipfs2 . peerId . id )
386
386
ipfs2 . pubsub . unsubscribe ( topic , sub2 )
387
387
check ( )
388
388
}
@@ -407,7 +407,7 @@ module.exports = (common) => {
407
407
const sub1 = ( msg ) => {
408
408
try {
409
409
expect ( msg . data . toString ( 'hex' ) ) . to . be . eql ( expectedHex )
410
- expect ( msg . from ) . to . be . eql ( ipfs2 . peerId . id )
410
+ expect ( msg . from ) . to . eql ( ipfs2 . peerId . id )
411
411
check ( )
412
412
} catch ( err ) {
413
413
check ( err )
@@ -418,8 +418,8 @@ module.exports = (common) => {
418
418
419
419
const sub2 = ( msg ) => {
420
420
try {
421
- expect ( msg . data . toString ( 'hex' ) ) . to . be . eql ( expectedHex )
422
- expect ( msg . from ) . to . be . eql ( ipfs2 . peerId . id )
421
+ expect ( msg . data . toString ( 'hex' ) ) . to . eql ( expectedHex )
422
+ expect ( msg . from ) . to . eql ( ipfs2 . peerId . id )
423
423
check ( )
424
424
} catch ( err ) {
425
425
check ( err )
@@ -449,15 +449,15 @@ module.exports = (common) => {
449
449
ipfs1 . pubsub . unsubscribe ( topic , sub1 )
450
450
ipfs2 . pubsub . unsubscribe ( topic , sub2 )
451
451
452
- expect ( inbox1 . sort ( ) ) . to . be . eql ( outbox . sort ( ) )
453
- expect ( inbox2 . sort ( ) ) . to . be . eql ( outbox . sort ( ) )
452
+ expect ( inbox1 . sort ( ) ) . to . eql ( outbox . sort ( ) )
453
+ expect ( inbox2 . sort ( ) ) . to . eql ( outbox . sort ( ) )
454
454
455
455
done ( err )
456
456
} )
457
457
458
458
function sub1 ( msg ) {
459
459
inbox1 . push ( msg . data . toString ( ) )
460
- expect ( msg . from ) . to . be . eql ( ipfs2 . peerId . id )
460
+ expect ( msg . from ) . to . eql ( ipfs2 . peerId . id )
461
461
check ( )
462
462
}
463
463
0 commit comments