fix: update comment for test to state correct expected outcome
This commit is contained in:
parent
9f45e7498b
commit
3c42562190
3 changed files with 3 additions and 3 deletions
2
lib/status-report.test.js
generated
2
lib/status-report.test.js
generated
|
|
@ -113,7 +113,7 @@ function setupEnvironmentAndStub(tmpDir) {
|
|||
t.is((0, status_report_1.getActionsStatus)(new Error("arbitrary error")), "failure", "We categorise an arbitrary error as a failure");
|
||||
t.is((0, status_report_1.getActionsStatus)(new util_1.ConfigurationError("arbitrary error")), "user-error", "We categorise a ConfigurationError as a user error");
|
||||
t.is((0, status_report_1.getActionsStatus)(new Error("exit code 1"), "multiple things went wrong"), "failure", "getActionsStatus should return failure if passed an arbitrary error and an additional failure cause");
|
||||
t.is((0, status_report_1.getActionsStatus)(new util_1.ConfigurationError("exit code 1"), "multiple things went wrong"), "user-error", "getActionsStatus should return failure if passed a configuration error and an additional failure cause");
|
||||
t.is((0, status_report_1.getActionsStatus)(new util_1.ConfigurationError("exit code 1"), "multiple things went wrong"), "user-error", "getActionsStatus should return user-error if passed a configuration error and an additional failure cause");
|
||||
t.is((0, status_report_1.getActionsStatus)(), "success", "getActionsStatus should return success if no error is passed");
|
||||
t.is((0, status_report_1.getActionsStatus)(new Object()), "failure", "getActionsStatus should return failure if passed an arbitrary object");
|
||||
t.is((0, status_report_1.getActionsStatus)(null, "an error occurred"), "failure", "getActionsStatus should return failure if passed null and an additional failure cause");
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -216,7 +216,7 @@ test("getActionStatus handling correctly various types of errors", (t) => {
|
|||
"multiple things went wrong",
|
||||
),
|
||||
"user-error",
|
||||
"getActionsStatus should return failure if passed a configuration error and an additional failure cause",
|
||||
"getActionsStatus should return user-error if passed a configuration error and an additional failure cause",
|
||||
);
|
||||
|
||||
t.is(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue