Skip to content

Commit 89c8065

Browse files
committed
Add test for invalidCborTag.
1 parent 7ef6f91 commit 89c8065

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/suites/algorithms-sd.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ export function sd2023Algorithms({
162162
'NOT be used on any of the components. Append the produced encoded ' +
163163
'value to proofValue.', async function() {
164164
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#selective-disclosure-functions:~:text=and%20mandatoryPointers.-,CBOR%2Dencode%20components%20per%20%5BRFC8949%5D%20where%20CBOR%20tagging%20MUST,-NOT%20be%20used';
165-
this.test.cell.skipMessage = 'Not Implemented';
166-
this.skip();
165+
await assertions.verificationFail({
166+
verifier,
167+
credential: fixtures.get(keyType).get('invalidCborTag'),
168+
reason: 'Should not verify proofValue created with cbor tag'
169+
});
167170
});
168171
it('If the proofValue string does not start with u, indicating ' +
169172
'that it is a multibase-base64url-no-pad-encoded value, an error ' +

0 commit comments

Comments
 (0)