From b55319b3d1042761fbfb9e66dfe02251bc9ab4d1 Mon Sep 17 00:00:00 2001 From: Hayden Young Date: Tue, 15 Oct 2024 12:57:06 +0100 Subject: [PATCH] test: Check type not class for peer id. --- test/orbitdb.test.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/orbitdb.test.js b/test/orbitdb.test.js index d0ab970..ec22fb8 100644 --- a/test/orbitdb.test.js +++ b/test/orbitdb.test.js @@ -102,8 +102,8 @@ describe('OrbitDB', function () { notStrictEqual(orbitdb1.peerId, undefined) }) - it('has a peerId of type Ed25519PeerIdImpl', async () => { - strictEqual(orbitdb1.peerId.constructor.name, 'Ed25519PeerIdImpl') + it('has a peerId of type Ed25519', async () => { + strictEqual(orbitdb1.peerId.type, 'Ed25519') }) it('has a peerId that matches the IPFS id', async () => { @@ -193,9 +193,9 @@ describe('OrbitDB', function () { it('has a peerId', async () => { notStrictEqual(orbitdb1.peerId, undefined) }) - - it('has a peerId of type Ed25519PeerIdImpl', async () => { - strictEqual(orbitdb1.peerId.constructor.name, 'Ed25519PeerIdImpl') + + it('has a peerId of type Ed25519', async () => { + strictEqual(orbitdb1.peerId.type, 'Ed25519') }) it('has a peerId that matches the IPFS id', async () => {