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 #443
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Nov 8, 2018
1 parent 72f7120 commit b8b86fd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/lib/scope-analysis.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,20 @@ interface Runnable {

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

test("https://github.com/eslint/typescript-eslint-parser/issues/443", () => {
const code = `
const Foo = 1;
type Foo = 1;
`;
const config = {
parser: "typescript-eslint-parser",
rules: {
"no-redeclare": "error"
}
};
const messages = linter.verify(code, config, { filename: "issue443.ts" });

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

0 comments on commit b8b86fd

Please sign in to comment.