Skip to content

Commit

Permalink
add 422 assertion
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick <[email protected]>
  • Loading branch information
PatStLouis authored and BigBlueHat committed Jul 3, 2024
1 parent ac5e22d commit f2749a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export function testBadRequestError({result, error}) {
should.not.exist(result, 'Expected no result from verifier');
should.exist(error, 'Expected verifier to error');
should.exist(error.status, 'Expected an HTTP error response code');
error.status.should.equal(400, 'Expected status code 400 Bad Request');
error.status.should.be.oneOf([400, 422],
'Expected status code 400 or 422.');
}

export function createRequestBody({vc}) {
Expand Down

0 comments on commit f2749a8

Please sign in to comment.