Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b87fb96

Browse files
committedMar 6, 2025·
add multikey test
1 parent 7a44bd5 commit b87fb96

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
 

‎test/documentLoader.spec.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,23 @@ describe('documentLoader', () => {
3131
const result = await documentLoader(url);
3232
expect(result.document).to.exist;
3333
});
34+
35+
it('should load a did:web document from web', async () => {
36+
const documentLoader = securityLoader({fetchRemoteContexts: true}).build();
37+
const url = 'https://digitalcredentials.github.io/dcc-did-web/did.json';
38+
const result = await documentLoader(url);
39+
expect(result.document).to.exist;
40+
expect(result.document.assertionMethod.type === 'Ed25519VerificationKey2020')
41+
});
42+
43+
it('should load a multikey did:web document from web', async () => {
44+
const documentLoader = securityLoader({fetchRemoteContexts: true}).build();
45+
const url = 'https://digitalcredentials.github.io/dcc-did-web/multikey/did.json';
46+
const result = await documentLoader(url);
47+
expect(result.document).to.exist;
48+
expect(result.document.verificationMethod.type === 'Multkey')
49+
});
50+
3451

3552
it('supports beta OBv3 context', async () => {
3653
const load = securityLoader().build()

0 commit comments

Comments
 (0)
Please sign in to comment.