Skip to content

Commit

Permalink
fix(core): fix validation logic of rule options
Browse files Browse the repository at this point in the history
  • Loading branch information
wadackel committed Jan 3, 2022
1 parent d3299dd commit ae9fdbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/tester.ts
Expand Up @@ -194,7 +194,7 @@ export class Tester {

if (rule.schema != null) {
try {
validate(rule.schema, opts[1], {
validate(rule.schema, opts[1] ?? {}, {
name: 'Rule options',
base: 'options',
});
Expand Down

0 comments on commit ae9fdbd

Please sign in to comment.