diff --git a/tests/suites/verify.js b/tests/suites/verify.js index 3e110c4..22ac03c 100644 --- a/tests/suites/verify.js +++ b/tests/suites/verify.js @@ -154,10 +154,10 @@ export function verifySuite({ verifier }); }); - it('If proofConfig.created is set and the value is not a valid ' + - '[XMLSCHEMA11-2] datetime, an INVALID_PROOF_DATETIME error MUST be ' + - 'raised.', async function() { - this.test.link = 'https://w3c.github.io/vc-di-bbs/#linkage-via-proof-options-and-mandatory-reveal:~:text=If%20proofConfig.created%20is%20set%20and%20if%20the%20value%20is%20not%20a%20valid%20%5BXMLSCHEMA11%2D2%5D%20datetime%2C%20an%20INVALID_PROOF_DATETIME%20error%20MUST%20be%20raised.'; + it('If proofConfig.created is set and if the value is not a valid ' + + '[XMLSCHEMA11-2] datetime, an error MUST be raised and SHOULD convey ' + + 'an error type of PROOF_GENERATION_ERROR.', async function() { + this.test.link = 'https://w3c.github.io/vc-di-bbs/#:~:text=If%20proofConfig.created%20is%20set%20and%20if%20the%20value%20is%20not%20a%20valid%20%5BXMLSCHEMA11%2D2%5D%20datetime%2C%20an%20error%20MUST%20be%20raised%20and%20SHOULD%20convey%20an%20error%20type%20of%20PROOF_GENERATION_ERROR.'; const credential = cloneTestVector(disclosed?.invalid?.created); //FIXME assert on error code or message when available await verificationFail({credential, verifier});