Skip to content

Commit

Permalink
.github/workflows/tests.yml: test HTTP 404 response handling
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Oct 26, 2020
1 parent 7c1ee15 commit 76a4fb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ jobs:
run: ./bin/phantomas.js http://127.0.0.1:8888/ --pretty | grep "generator" -A4

- name: Check that bin/phantomas.js handles errors correctly
run: ./bin/phantomas.js http://127.0.0.1:1234/ 2>&1 | grep "net::ERR_CONNECTION_REFUSED at http://127.0.0.1:1234"
run: |
./bin/phantomas.js http://127.0.0.1:1234/ 2>&1 | grep "net::ERR_CONNECTION_REFUSED at http://127.0.0.1:1234"
./bin/phantomas.js http://127.0.0.1:8888/not_found 2>&1 | grep "Error: Navigation failed because browser has disconnected!"

0 comments on commit 76a4fb6

Please sign in to comment.