Skip to content

Commit

Permalink
test: ensure that exceptions are handled and responded accordingly
Browse files Browse the repository at this point in the history
Part of #48
  • Loading branch information
php-coder committed Apr 22, 2024
1 parent 9cd1318 commit b10946d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/misc.hurl
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ GET {{ SERVER_URL }}/custom/route
HTTP 200
[Asserts]
jsonpath "$.custom" == true


GET {{ SERVER_URL }}/custom/exception
HTTP 500
[Asserts]
header "Content-Type" contains "application/json"
jsonpath "$.error" == "Internal Server Error"

0 comments on commit b10946d

Please sign in to comment.