diff --git a/tests/lib/rules/restrict-ranges.js b/tests/lib/rules/restrict-ranges.js index c3b0db2..1879bcd 100644 --- a/tests/lib/rules/restrict-ranges.js +++ b/tests/lib/rules/restrict-ranges.js @@ -101,6 +101,12 @@ new RuleTester().run('restrict-ranges', rule, preprocess({ { versionRegex: '^' }, { versionRegex: '~' } ]] + }, + // treat multiple options as OR + { + code: '{ "dependencies": { "foo": "^1.2.3", "bar": "~1.2.3" } }', + filename: 'package.json', + options: [{ versionHint: 'carat', versionRegex: '~' }] } ], invalid: [