test: Check type not class for peer id.

This commit is contained in:
Hayden Young 2024-10-15 12:57:06 +01:00
parent 378d519e18
commit b55319b3d1

View File

@ -102,8 +102,8 @@ describe('OrbitDB', function () {
notStrictEqual(orbitdb1.peerId, undefined) notStrictEqual(orbitdb1.peerId, undefined)
}) })
it('has a peerId of type Ed25519PeerIdImpl', async () => { it('has a peerId of type Ed25519', async () => {
strictEqual(orbitdb1.peerId.constructor.name, 'Ed25519PeerIdImpl') strictEqual(orbitdb1.peerId.type, 'Ed25519')
}) })
it('has a peerId that matches the IPFS id', async () => { it('has a peerId that matches the IPFS id', async () => {
@ -193,9 +193,9 @@ describe('OrbitDB', function () {
it('has a peerId', async () => { it('has a peerId', async () => {
notStrictEqual(orbitdb1.peerId, undefined) notStrictEqual(orbitdb1.peerId, undefined)
}) })
it('has a peerId of type Ed25519PeerIdImpl', async () => { it('has a peerId of type Ed25519', async () => {
strictEqual(orbitdb1.peerId.constructor.name, 'Ed25519PeerIdImpl') strictEqual(orbitdb1.peerId.type, 'Ed25519')
}) })
it('has a peerId that matches the IPFS id', async () => { it('has a peerId that matches the IPFS id', async () => {