fix test
This commit is contained in:
parent
47e77901fd
commit
f31b9d3891
1 changed files with 2 additions and 2 deletions
|
@ -326,7 +326,7 @@ namespace ts {
|
|||
const host = createModuleResolutionHost(
|
||||
/*hasDirectoryExists*/ true,
|
||||
{
|
||||
name: "/a.ts",
|
||||
name: "/modules/a.ts",
|
||||
symlinks: ["/sub/node_modules/a/index.ts"],
|
||||
},
|
||||
{
|
||||
|
@ -342,7 +342,7 @@ namespace ts {
|
|||
isExternalLibraryImport: true,
|
||||
originalPath: "/sub/node_modules/a/index.ts",
|
||||
packageId: undefined,
|
||||
resolvedFileName: "/a.ts",
|
||||
resolvedFileName: "/modules/a.ts",
|
||||
});
|
||||
resolution = resolveModuleName("a", "/foo.ts", compilerOptions, host, cache);
|
||||
assert.isUndefined(resolution.resolvedModule, "lookup in parent directory doesn't hit the cache");
|
||||
|
|
Loading…
Reference in a new issue