Skip to content

Commit

Permalink
More validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 16, 2022
1 parent d0b46ba commit eaffb29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const NORMALIZERS = {
force: [checkBoolean],
inputs: [checkObjectProps.bind(undefined, [checkJson])],
limit: [checkInteger, normalizeLimit],
merge: [validateMerge],
merge: [checkString, checkDefinedString, validateMerge],
outliers: [checkBoolean],
precision: [checkInteger, normalizePrecision],
quiet: [checkBoolean],
Expand Down
1 change: 0 additions & 1 deletion src/config/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const optionalArray = function (value) {
const EXAMPLE_CONFIG = {
...DEFAULT_CONFIG,
inputs: { inputId: 'inputValue' },
merge: 'f0f13513-5267-43a9-a02a-60fdde0332d0',
output: './file.js',
reporter: optionalArray('debug'),
reporterConfig: { debug: { property: true } },
Expand Down

0 comments on commit eaffb29

Please sign in to comment.