Skip to content

Commit

Permalink
Fix: rename require-uncached => import-fresh
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Dec 25, 2018
1 parent 4122283 commit db4f27c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/lib/config/config-file.js
Expand Up @@ -181,7 +181,7 @@ describe("ConfigFile", () => {

// Hacky: need to override isFile for each call for testing
"../util/module-resolver": createStubModuleResolver({ "eslint-config-foo": resolvedPath }),
"require-uncached"(filename) {
"importFresh"(filename) {
return configDeps[filename];
}
};
Expand Down Expand Up @@ -265,7 +265,7 @@ describe("ConfigFile", () => {
"../util/module-resolver": createStubModuleResolver({
"eslint-plugin-test": resolvedPath
}),
"require-uncached"(filename) {
"importFresh"(filename) {
return configDeps[filename];
}
};
Expand Down Expand Up @@ -296,7 +296,7 @@ describe("ConfigFile", () => {
"../util/module-resolver": createStubModuleResolver({
"eslint-plugin-test": resolvedPath
}),
"require-uncached"(filename) {
"importFresh"(filename) {
return configDeps[filename];
}
};
Expand Down Expand Up @@ -331,7 +331,7 @@ describe("ConfigFile", () => {
"eslint-config-foo": resolvedPaths[0],
"eslint-config-bar": resolvedPaths[1]
}),
"require-uncached"(filename) {
"importFresh"(filename) {
return configDeps[filename];
}
};
Expand Down Expand Up @@ -932,7 +932,7 @@ describe("ConfigFile", () => {
const resolvedPath = path.resolve(PROJECT_PATH, "./node_modules/eslint-plugin-test/index.js");

const configDeps = {
"require-uncached"(filename) {
"importFresh"(filename) {
return configDeps[filename];
}
};
Expand Down

0 comments on commit db4f27c

Please sign in to comment.