From f883c761ea2177d4afc34852f28a2b993f97e5d6 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 2 Jul 2024 19:20:11 +0000 Subject: [PATCH] add 422 assertions Signed-off-by: Patrick --- tests/assertions.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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}) => {