From f2749a8b2f20d64f465ec9c7959f3b9fbc0634e3 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 2 Jul 2024 19:18:50 +0000 Subject: [PATCH] add 422 assertion Signed-off-by: Patrick --- tests/helpers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/helpers.js b/tests/helpers.js index 493a809..2c4d7c7 100644 --- a/tests/helpers.js +++ b/tests/helpers.js @@ -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}) {