Do not report warning: undefined

This commit is contained in:
Simon Engledew 2021-02-01 16:32:13 +00:00
parent 6408d72268
commit 1f07e287da
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
6 changed files with 15 additions and 4 deletions

View file

@ -403,6 +403,13 @@ test("formatWorkflowErrors() when there are multiple errors", (t) => {
t.true(message.startsWith("2 issues were detected with this workflow:"));
});
test("formatWorkflowCause() with no errors", (t) => {
const message = actionsutil.formatWorkflowCause([
]);
t.deepEqual(message, undefined);
});
test("formatWorkflowCause()", (t) => {
const message = actionsutil.formatWorkflowCause([
actionsutil.WorkflowErrors.CheckoutWrongHead,