Skip to content

Commit

Permalink
fix: allow to setup empty array (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Dec 12, 2019
1 parent 5df649c commit 3b79595
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 25 deletions.
69 changes: 45 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/options.json
Expand Up @@ -77,7 +77,6 @@
}
},
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{
Expand Down
1 change: 1 addition & 0 deletions test/validate-options.test.js
Expand Up @@ -20,6 +20,7 @@ describe('validate options', () => {
const tests = {
patterns: {
success: [
[],
['test.txt'],
['test.txt', 'test-other.txt'],
[
Expand Down

0 comments on commit 3b79595

Please sign in to comment.