Skip to content

Commit

Permalink
fix: fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Nov 21, 2023
1 parent f9ff22b commit dba21cc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .xo-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/job-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dba21cc

Please sign in to comment.