Skip to content

Commit 23ec8d6

Browse files
committed
add test for ob without type
1 parent b064b50 commit 23ec8d6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

test/Verify.schema.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)