File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( )
You can’t perform that action at this time.
0 commit comments