diff --git a/tests/src/core/resolve.js b/tests/src/core/resolve.js index e8f255f34..71791c500 100644 --- a/tests/src/core/resolve.js +++ b/tests/src/core/resolve.js @@ -3,6 +3,7 @@ import { expect } from 'chai' import resolve, { CASE_SENSITIVE_FS, fileExistsWithCaseSync } from 'eslint-module-utils/resolve' import ModuleCache from 'eslint-module-utils/ModuleCache' +import * as path from 'path' import * as fs from 'fs' import * as utils from '../utils' @@ -43,6 +44,11 @@ describe('resolve', function () { expect(fileExistsWithCaseSync(file, ModuleCache.getSettings(testContext))) .to.be.false }) + it('detecting case does not include parent folder path (issue #720)', function () { + const f = path.join(process.cwd().toUpperCase(), './tests/files/jsx/MyUnCoolComponent.jsx') + expect(fileExistsWithCaseSync(f, ModuleCache.getSettings(testContext), true)) + .to.be.true + }) }) describe('rename cache correctness', function () {