@transmute/did-key-x25519
Version:
``` npm i @transmute/did-key-x25519@latest --save ```
15 lines (13 loc) • 475 B
text/typescript
import * as ed25519 from '../..';
import { documents } from './__fixtures__';
documents.forEach((document: any) => {
const { did, ...representations } = document;
describe(did, () => {
Object.keys(representations).forEach((representation: any) => {
it(representation, async () => {
const res = await ed25519.resolve(did, { accept: representation });
expect(res.didDocument).toEqual(representations[representation]);
});
});
});
});