fix linter issue

This commit is contained in:
Shaikhul Islam 2023-05-09 14:55:18 +00:00
parent edb138ff88
commit 699855c048
3 changed files with 3 additions and 7 deletions

4
lib/workflow.test.js generated
View file

@ -173,9 +173,7 @@ function errorCodes(actual, expected) {
t.deepEqual(message, undefined);
});
(0, ava_1.default)("formatWorkflowCause()", (t) => {
const message = (0, workflow_1.formatWorkflowCause)([
workflow_1.WorkflowErrors.CheckoutWrongHead,
]);
const message = (0, workflow_1.formatWorkflowCause)([workflow_1.WorkflowErrors.CheckoutWrongHead]);
t.deepEqual(message, "CheckoutWrongHead");
t.deepEqual((0, workflow_1.formatWorkflowCause)([]), undefined);
});

File diff suppressed because one or more lines are too long

View file

@ -249,9 +249,7 @@ test("formatWorkflowCause() with no errors", (t) => {
});
test("formatWorkflowCause()", (t) => {
const message = formatWorkflowCause([
WorkflowErrors.CheckoutWrongHead,
]);
const message = formatWorkflowCause([WorkflowErrors.CheckoutWrongHead]);
t.deepEqual(message, "CheckoutWrongHead");
t.deepEqual(formatWorkflowCause([]), undefined);