Skip to content

Commit

Permalink
add 422 assertions
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick <patrick.st-louis@opsecid.ca>
  • Loading branch information
PatStLouis authored and BigBlueHat committed Jul 3, 2024
1 parent 72ce93f commit f883c76
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ export const verificationFail = async ({credential, verifier}) => {
should.not.exist(result, 'Expected no result from verifier.');
should.exist(error, 'Expected verifier to error.');
should.exist(error.status, 'Expected verifier to return an HTTP Status code');
error.status.should.equal(
400,
'Expected HTTP Status code 400 invalid input!'
);
error.status.should.be.oneOf([400, 422],
'Expected HTTP Status code 400 or 422.');
};

export const verificationSuccess = async ({credential, verifier}) => {
Expand Down

0 comments on commit f883c76

Please sign in to comment.