Skip to content

Commit

Permalink
Remove error names from test descriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
JSAssassin committed Aug 11, 2023
1 parent 290f598 commit 4b2ee1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/20-verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ describe('eddsa-2022 (verify)', function() {
await verificationFail({credential, verifier});
});
it('If a canonicalization algorithm other than URDNA2015 is used, ' +
'a INVALID_PROOF_VALUE error MUST be returned.', async function() {
'an error MUST be raised.', async function() {
this.test.cell = {columnId, rowId: this.test.title};
const credential = credentials.clone('canonizeJcs');
await verificationFail({credential, verifier});
});
it('If a canonicalization data hashing other than algorithm ' +
'SHA-2-256 is used, a INVALID_PROOF_VALUE error MUST be returned.',
'SHA-2-256 is used, an error MUST be raised.',
async function() {
this.test.cell = {columnId, rowId: this.test.title};
const credential = credentials.clone('digestSha512');
await verificationFail({credential, verifier});
});
it('If the "cryptosuite" field is not the string "eddsa-2022", ' +
'an INVALID_PROOF_CONFIGURATION error MUST be returned.',
'an error MUST be raised.',
async function() {
this.test.cell = {columnId, rowId: this.test.title};
const credential = credentials.clone('incorrectCryptosuite');
Expand Down

0 comments on commit 4b2ee1a

Please sign in to comment.