Fork of github.com/did-method-plc/did-method-plc
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix erroneously-passing did doc readback test

+10 -5
+10 -5
packages/server/tests/server.test.ts
··· 131 131 exoticSigningKeyFromTheFuture, 132 132 ) 133 133 134 - // check that we can still read back the did document 135 - const doc = await client.getDocumentData(did2) 136 - expect(doc.verificationMethods).toEqual({ 137 - atproto: exoticSigningKeyFromTheFuture, 138 - }) 134 + // check that we can still read back the rendered did document 135 + const doc = await client.getDocument(did2) 136 + expect(doc.verificationMethod).toEqual([ 137 + { 138 + id: did2 + '#atproto', 139 + type: 'Multikey', 140 + controller: did2, 141 + publicKeyMultibase: exoticSigningKeyFromTheFuture.slice(8), 142 + }, 143 + ]) 139 144 }) 140 145 141 146 it('does not allow syntactically invalid verificationMethod keys', async () => {