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

Commit 72f7120

Browse files
committed
add test for #437
1 parent ca4b08f commit 72f7120

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

tests/lib/scope-analysis.js

+18
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,22 @@ const bar = 'blah'
209209

210210
assert.deepStrictEqual(messages, []);
211211
});
212+
213+
test("https://github.com/eslint/typescript-eslint-parser/issues/437", () => {
214+
const code = `
215+
interface Runnable {
216+
run (): Result
217+
toString (): string
218+
}
219+
`;
220+
const config = {
221+
parser: "typescript-eslint-parser",
222+
rules: {
223+
"no-undef": "error"
224+
}
225+
};
226+
const messages = linter.verify(code, config, { filename: "issue437.ts" });
227+
228+
assert.deepStrictEqual(messages, []);
229+
});
212230
});

0 commit comments

Comments
 (0)