Skip to content

Commit eac7a48

Browse files
committed
Fix non-strict-compliant test
1 parent e724e88 commit eac7a48

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/cases/fourslash/localGetReferences.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,13 @@ const rangesByText = test.rangesByText();
205205
for (const text in rangesByText) {
206206
const ranges = rangesByText[text];
207207
if (text === "globalVar") {
208-
function isShadow(r) {
209-
return r.marker && r.marker.data && r.marker.data.shadow;
210-
}
211208
verify.rangesReferenceEachOther(ranges.filter(isShadow));
212209
verify.rangesReferenceEachOther(ranges.filter(r => !isShadow(r)));
213210
} else {
214211
verify.rangesReferenceEachOther(ranges);
215212
}
216213
}
214+
215+
function isShadow(r) {
216+
return r.marker && r.marker.data && r.marker.data.shadow;
217+
}

0 commit comments

Comments
 (0)