From 4cade45236947732a891b33a627e515cfde4be45 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 14 Jun 2023 11:14:42 +0200 Subject: [PATCH] fix: expect IPNS name to be an IPNS name --- test/ipns-pubsub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ipns-pubsub.js b/test/ipns-pubsub.js index 52f86a14..eea96f7b 100644 --- a/test/ipns-pubsub.js +++ b/test/ipns-pubsub.js @@ -166,6 +166,6 @@ const resolveByPubSub = async (publisher, subscriber) => { timeout: 1000 })) - expect(peerIdFromString(res1.name).toString()).to.equal(publisher.peer.id.toString()) // Published to Node A ID + expect(peerIdFromString(res1.name.replace('/ipns/', '')).toString()).to.equal(publisher.peer.id.toString()) // Published to Node A ID expect(res2).to.equal(ipfsRef) }