File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ describe('schema checks', () => {
3737 expect ( result ) . to . deep . equalInAnyOrder ( { results : 'NO_SCHEMA' } )
3838 } )
3939
40+ it ( 'returns NO_SCHEMA when ob context but no OB type' , async ( ) => {
41+ const vc = await fetchVC ( 'https://digitalcredentials.github.io/vc-test-fixtures/verifiableCredentials/v2/bothSignatureTypes/didkey/legacy-noStatus-noExpiry-nonOBWithOBContext.json' )
42+ const result = await checkSchemas ( vc )
43+ expect ( result ) . to . deep . equalInAnyOrder ( { results : 'NO_SCHEMA' } )
44+ } )
45+
4046 it ( 'fails for obv3 guessed by context with missing achievement id' , async ( ) => {
4147 const vc = await fetchVC ( 'https://digitalcredentials.github.io/vc-test-fixtures/verifiableCredentials/v2/ed25519/didKey/legacy-noStatus-noExpiry.json' )
4248 // @ts -ignore: Property does not exist
You can’t perform that action at this time.
0 commit comments