From acb20e5755ff136c55456cc73ed8d92a6a67b4ea Mon Sep 17 00:00:00 2001 From: Sergei Startsev Date: Tue, 22 Jan 2019 21:47:57 +0300 Subject: [PATCH] Adjust tests --- tests/src/rules/no-unresolved.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/tests/src/rules/no-unresolved.js b/tests/src/rules/no-unresolved.js index a8a6a7e354..fb5b17589d 100644 --- a/tests/src/rules/no-unresolved.js +++ b/tests/src/rules/no-unresolved.js @@ -213,11 +213,6 @@ function runResolverTests(resolver) { code: 'import foo from "./jsx/MyUncoolComponent.jsx"', options: [{ caseSensitive: false }], }), - // #1259 issue - rest({ // test with explicit flag - code: `import foo from "${mismatchedPath}"`, - options: [{ caseSensitive: true }], - }), ], invalid: [ @@ -230,8 +225,20 @@ function runResolverTests(resolver) { options: [{ caseSensitive: true }], errors: [`Casing of ./jsx/MyUncoolComponent.jsx does not match the underlying filesystem.`], }), + ], + }) + + ruleTester.run('case sensitivity strict', rule, { + valid: [ + // #1259 issue + rest({ // caseSensitiveStrict is disabled by default + code: `import foo from "${mismatchedPath}"`, + }), + ], + + invalid: [ // #1259 issue - rest({ // test with explicit flag + rest({ // test with enabled caseSensitiveStrict option code: `import foo from "${mismatchedPath}"`, options: [{ caseSensitiveStrict: true }], errors: [`Casing of ${mismatchedPath} does not match the underlying filesystem.`],