From dba21cc89352e80ff78ce76c27c48ce9d9ff4cda Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Tue, 21 Nov 2023 00:18:35 -0600 Subject: [PATCH] fix: fixed tests --- .xo-config.js | 4 +++- package.json | 2 +- src/job-validator.js | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.xo-config.js b/.xo-config.js index bac53ed..ec4fcac 100644 --- a/.xo-config.js +++ b/.xo-config.js @@ -9,7 +9,9 @@ module.exports = { 'unicorn/require-post-message-target-origin': 'off', 'unicorn/prefer-node-protocol': 'warn', 'unicorn/prefer-top-level-await': 'warn', - 'unicorn/prefer-event-target': 'off' + 'unicorn/prefer-event-target': 'off', + 'unicorn/no-empty-file': 'warn', + 'unicorn/no-process-exit': 'warn' }, overrides: [ { diff --git a/package.json b/package.json index eab31c2..0d98e55 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "nyc": "^15.1.0", "remark-cli": "11", "remark-preset-github": "^4.0.4", - "xo": "0.56" + "xo": "0.54" }, "engines": { "node": ">=12.17.0 <13.0.0-0||>=13.2.0" diff --git a/src/job-validator.js b/src/job-validator.js index b73d948..d0c6bb7 100644 --- a/src/job-validator.js +++ b/src/job-validator.js @@ -110,8 +110,8 @@ const cronValidateWithSeconds = (job, config) => { job.cronValidate && job.cronValidate.preset ? job.cronValidate.preset : config.cronValidate && config.cronValidate.preset - ? config.cronValidate.preset - : 'default'; + ? config.cronValidate.preset + : 'default'; const override = { ...(config.cronValidate && config.cronValidate.override ? config.cronValidate.override