Skip to content

Commit 650b2d2

Browse files
committed
fix caching in lshost test
1 parent 706c1e2 commit 650b2d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/harness/unittests/cachingInServerLSHost.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ namespace ts {
118118
{
119119
let fileExistsIsCalled = false;
120120
serverHost.fileExists = (fileName): boolean => {
121-
if (fileName === "lib.d.ts") {
121+
if (Harness.isDefaultLibraryFile(fileName)) {
122122
return false;
123123
}
124124
fileExistsIsCalled = true;
@@ -142,7 +142,7 @@ namespace ts {
142142
{
143143
let fileExistsCalled = false;
144144
serverHost.fileExists = (fileName): boolean => {
145-
if (fileName === "lib.d.ts") {
145+
if (Harness.isDefaultLibraryFile(fileName)) {
146146
return false;
147147
}
148148
fileExistsCalled = true;

0 commit comments

Comments
 (0)