Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Commit 180cbfe

Browse files
committed
add test for #471
1 parent 13f50c3 commit 180cbfe

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/lib/scope-analysis.js

+17
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,21 @@ const links = document.querySelectorAll( selector ) as NodeListOf<HTMLElement>
275275

276276
assert.deepStrictEqual(messages, []);
277277
});
278+
279+
test("https://github.com/eslint/typescript-eslint-parser/issues/471", () => {
280+
const code = `
281+
class X {
282+
field = {}
283+
}
284+
`;
285+
const config = {
286+
parser: "typescript-eslint-parser",
287+
rules: {
288+
"no-undef": "error"
289+
}
290+
};
291+
const messages = linter.verify(code, config, { filename: "issue.ts" });
292+
293+
assert.deepStrictEqual(messages, []);
294+
});
278295
});

0 commit comments

Comments
 (0)