File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,23 @@ describe('documentLoader', () => {
31
31
const result = await documentLoader ( url ) ;
32
32
expect ( result . document ) . to . exist ;
33
33
} ) ;
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
+
34
51
35
52
it ( 'supports beta OBv3 context' , async ( ) => {
36
53
const load = securityLoader ( ) . build ( )
You can’t perform that action at this time.
0 commit comments