Skip to content

Commit

Permalink
add 422 assertion (#55)
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick <[email protected]>
  • Loading branch information
PatStLouis authored Jul 3, 2024
1 parent a5d729c commit 4aa46e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/assertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export function shouldThrowInvalidInput({result, error}) {
should.exist(error.status, 'Expected an HTTP error response code.');
error.status.should.not.equal(401,
'Should not get an Authorization Error.');
error.status.should.equal(400,
'Expected status code 400 invalid input!');
error.status.should.be.oneOf([400, 422],
'Expected status code 400 or 422.');
}

export function shouldReturnResult({result, error}) {
Expand Down

0 comments on commit 4aa46e2

Please sign in to comment.