Commit Graph

73 Commits

Author SHA1 Message Date
Taylor Schley ffff1d98d6 test: fix code coverage 2021-11-11 10:37:19 -07:00
niftylettuce 968336753c chore: added test job cronValidate option override for #135 2021-11-09 16:28:11 -05:00
niftylettuce 7c9e1546c0 fix: fixed tests and dropped bthreads 2021-11-09 15:55:07 -05:00
Taylor Schley 9106113bdc feat: add createWorker and acceptedExtensions 2021-11-04 18:06:09 -06:00
Taylor Schley cc1ecda171 docs: correct cronValidate options 2021-11-02 10:26:42 -06:00
KaKa 0ea22af127 fix: remove closeWorkerAfterMs after exit or done 2021-10-26 15:35:33 -06:00
Taylor Schley c3d9f9792a chore: bump @breejs/later 2021-10-26 15:22:27 -06:00
Kyriakos Nicola 429e299c32 test: increase code coverage 2021-08-27 20:48:31 -04:00
Kyriakos Nicola 3318d095fa feat: tz support for node v10 and v12 2021-08-27 20:45:55 -04:00
Kyriakos Nicola 7645aba33c test: mock date.getTimezoneOffset() 2021-08-25 19:32:14 -04:00
Kyriakos Nicola b382b4f28d test: fix tests that utilize FakeTimers
- run `setTimeout()` tests serially
- override `clock.setTimeout()` instead of `global.setTimeout()`
- use `t.plan()` for `setTimeout()` assertions
2021-08-25 17:57:58 -04:00
Kyriakos Nicola a7e18ac83b chore: move localOffsetMillis up a notch for readability 2021-08-25 14:04:45 -04:00
Kyriakos Nicola 6ab73e7fe7 test: add timezone tests for bree.start() 2021-08-25 12:35:52 -04:00
Kyriakos Nicola c65aef4c7b fix: don't override job's timezone 2021-08-25 11:29:00 -04:00
Kyriakos Nicola 8a56888675 fix: timezone conversions 2021-08-24 16:04:26 -04:00
Kyriakos Nicola 8ba28db6e3 test: add tz validation tests for job-validator.js 2021-08-22 20:42:44 -04:00
Kyriakos Nicola 3807abfa8c test: add tz config tests for job-builder.js 2021-08-22 20:06:46 -04:00
Taylor Schley df8e8543d8 feat: return array of added jobs 2021-08-17 15:20:32 -05:00
Taylor Schley 64e869f0c4 test: add init tests 2021-08-06 09:35:03 -05:00
Taylor Schley aa872be753 test: add plugin tests 2021-07-28 10:20:31 -05:00
Ivan Arcuschin e6a8370a26 fix: silent error for string literals 2021-07-10 13:12:12 -05:00
Naz 2c0c7f63b4 feat: added custom workerMessageHandler option to config 2021-02-22 18:26:28 +13:00
Naz d30dd73f1b fix: made sure the jobs are stopped when removed 2021-02-13 18:30:02 +13:00
niftylettuce 3de3b50f2b fix: added missing "clears timeouts" test case 2021-02-08 11:54:34 -06:00
niftylettuce 9ab53c925a fix: closeWorkerAfterMs timer now starts when job worker is "online" 2021-02-08 11:42:01 -06:00
niftylettuce 9472d52851 fix: increase closeWorkerAfterMs from 500 to 2000 for travis slowness 2021-02-08 11:20:47 -06:00
niftylettuce a7e667386d chore: rewrite with events.once (with polyfill) 2021-02-08 11:08:28 -06:00
Taylor Schley 255f60ac73 refactor: refactor tests 2021-02-06 11:52:30 -06:00
Marc Schneider ebb2ae3e13 fix: refactoring and improved test
moved localTime init to job-builder.js;
new test to verify functionality when job is added;
extended verification of timezone offset in test
2021-02-01 08:25:03 +01:00
Marc Schneider b6b96a5399 fix: refined test 2021-01-19 01:33:11 +01:00
Marc Schneider c669884ab4 fix: reverted travisCI config and refined test 2021-01-19 01:24:56 +01:00
Marc Schneider 5d56016f2a fix: issue #74 use local timezone 2021-01-17 19:19:52 +01:00
Naz 5abf59ff5b test: reworked tests to stop using cloned console
refs #60
2021-01-05 16:13:59 +13:00
Naz 7685bceecc test: fixed named function test case 2021-01-05 16:12:46 +13:00
Naz b1b24aa470 test: added test coverage for getName util 2021-01-05 14:57:26 +13:00
Naz b00765800c test: added coverage for parseValue job util 2020-12-16 19:16:56 +13:00
Naz 128da8ecc7 test: added coverage to job utils module 2020-12-16 18:49:31 +13:00
naz 7349b9782a Merge pull request #59 from naz/remove-timeout-after-date-execution
fix: cleaned up timeout references after job.date
2020-12-10 13:24:22 +13:00
naz 0da742c7de Merge pull request #62 from naz/custom-error-handler
Added custom error handler config option
2020-12-10 12:17:55 +13:00
Naz 761b6b9950 feat: added custom errorHandler option to config 2020-12-07 13:37:34 +13:00
Naz 3d0719c09f fix: cleaned up timeout references after job.date 2020-12-02 16:32:50 +13:00
Naz 9e7f890c32 test: added test coverage for job validator 2020-11-26 19:44:08 +13:00
Naz be12b634a1 test: added coverage for getJobNames 2020-11-26 16:41:29 +13:00
Naz 9fc2afeb4d refactor: removed cronValidate property from job object 2020-11-26 16:09:06 +13:00
niftylettuce a8f7b13bd3 Merge pull request #52 from naz/fix-test-description
fix: corrected test description to reflect reality
2020-11-22 20:58:15 -06:00
Naz b06a2f5e1d fix: corrected test description to reflect reality 2020-11-23 14:07:41 +13:00
Naz 5b1bfd380a fix: removed default timeout assignment when interval is present 2020-11-23 14:05:12 +13:00
Naz f2416ce4a5 feat: added async support to stop method 2020-11-18 16:12:42 +13:00
niftylettuce 6adbbd794f fix: change logger.error to logger.warn for jobs already started or running 2020-08-27 22:52:23 -05:00
niftylettuce 83e726f7f9 fix: fixed cron parsing (closes #32) 2020-08-27 20:25:14 -05:00