diff --git a/tests/assertions.js b/tests/assertions.js index f5596d8..a35e215 100644 --- a/tests/assertions.js +++ b/tests/assertions.js @@ -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}) => {