From 7be6d9619c2b40b71d339ff881e8cff0cc1520ce Mon Sep 17 00:00:00 2001 From: Jacob Wallraff Date: Mon, 9 Jan 2023 18:02:30 -0800 Subject: [PATCH] More test cases --- actions-workflow-parser/src/model/converter/cron.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/actions-workflow-parser/src/model/converter/cron.test.ts b/actions-workflow-parser/src/model/converter/cron.test.ts index 6f5839f..56edded 100644 --- a/actions-workflow-parser/src/model/converter/cron.test.ts +++ b/actions-workflow-parser/src/model/converter/cron.test.ts @@ -18,6 +18,8 @@ describe("isValidCron", () => { "0 0 * * SUN-TUE", "0 0 * * SUN-2", "0 * * */FEB */TUE", + "0 2-4/5 * * *", + // "0 29/5 * * *" <- crontab guru says this is valid, need to test with go library ] for (const cron of valid) { @@ -32,7 +34,9 @@ describe("isValidCron", () => { "0 0 * SUN JAN", "0 0 * * FRI-TUE", "0 12-4 * * *", - "0 */0 * * *" + "0 */0 * * *", + "0 2/4-5 * * *", // TODO + "0 2-4-6/5 * * *", // TODO ] for (const cron of invalid) {