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]); }); }); }); });