diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e1954d8..42a009c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -68,7 +68,8 @@ "kavod-io.vscode-jest-test-adapter", "nilobarp.javascript-test-runner", "vespa-dev-works.jestRunIt", - "andys8.jest-snippets" + "andys8.jest-snippets", + "trunk.io" ] } } diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e4ebfc7 --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +README.md +test-project +definition-manifest.json +.vscode +.npmignore diff --git a/test/cron-parsing.test.ts b/test/cron-parsing.test.ts index 9f3da87..3e3553b 100644 --- a/test/cron-parsing.test.ts +++ b/test/cron-parsing.test.ts @@ -123,6 +123,12 @@ describe('cron parsing tests', function () { ); }); + it('parse cron 30 8 * 1-5,9-12 0,6', function () { + // this should mean the same as "30 8 * 1-5,9-12 7,6" + const result = parseCronParts('30 8 * 1-5,9-12 0,6'); + expect(result.english).eql('At 00:00 on day-of-month 1 and 15 and on Wednesday'); + }); + it('parse cron 0 0 1,15 * 3', function () { const result = parseCronParts('0 0 1,15 * 3'); expect(result.english).eql('At 00:00 on day-of-month 1 and 15 and on Wednesday');