@@ -375,14 +375,14 @@ module.exports = (common) => {
375375
376376 const sub1 = ( msg ) => {
377377 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 )
379379 ipfs1 . pubsub . unsubscribe ( topic , sub1 )
380380 check ( )
381381 }
382382
383383 const sub2 = ( msg ) => {
384384 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 )
386386 ipfs2 . pubsub . unsubscribe ( topic , sub2 )
387387 check ( )
388388 }
@@ -407,7 +407,7 @@ module.exports = (common) => {
407407 const sub1 = ( msg ) => {
408408 try {
409409 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 )
411411 check ( )
412412 } catch ( err ) {
413413 check ( err )
@@ -418,8 +418,8 @@ module.exports = (common) => {
418418
419419 const sub2 = ( msg ) => {
420420 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 )
423423 check ( )
424424 } catch ( err ) {
425425 check ( err )
@@ -449,15 +449,15 @@ module.exports = (common) => {
449449 ipfs1 . pubsub . unsubscribe ( topic , sub1 )
450450 ipfs2 . pubsub . unsubscribe ( topic , sub2 )
451451
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 ( ) )
454454
455455 done ( err )
456456 } )
457457
458458 function sub1 ( msg ) {
459459 inbox1 . push ( msg . data . toString ( ) )
460- expect ( msg . from ) . to . be . eql ( ipfs2 . peerId . id )
460+ expect ( msg . from ) . to . eql ( ipfs2 . peerId . id )
461461 check ( )
462462 }
463463
0 commit comments