From 17dc0ac86d1e4bff50320b5edc82cb52da5a040a Mon Sep 17 00:00:00 2001 From: danbulant Date: Fri, 21 Feb 2020 20:10:30 +0100 Subject: [PATCH] Test error exit --- test/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index 417677c..5a0083b 100644 --- a/test/index.js +++ b/test/index.js @@ -4,4 +4,7 @@ const chalk = require("chalk"); console.log("Trying to make request..."); got("http://google.com").then((r) => { console.log(chalk.blue("Got request working!")); -}) \ No newline at end of file + + console.error(chalk.red("Exiting with code 1 to test error cases")); + process.exit(1); +});