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

Commit

Permalink
add test for #437
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Nov 8, 2018
1 parent ca4b08f commit 72f7120
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/lib/scope-analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,22 @@ const bar = 'blah'

assert.deepStrictEqual(messages, []);
});

test("https://github.com/eslint/typescript-eslint-parser/issues/437", () => {
const code = `
interface Runnable {
run (): Result
toString (): string
}
`;
const config = {
parser: "typescript-eslint-parser",
rules: {
"no-undef": "error"
}
};
const messages = linter.verify(code, config, { filename: "issue437.ts" });

assert.deepStrictEqual(messages, []);
});
});

0 comments on commit 72f7120

Please sign in to comment.