Skip to content

Commit

Permalink
Chore: Adding assign/redeclare tests to no-undefined (refs #7964) (#7965
Browse files Browse the repository at this point in the history
)
  • Loading branch information
platinumazure authored and gyandeeps committed Jan 23, 2017
1 parent 8bcbf5d commit a7bd66a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/lib/rules/no-undefined.js
Expand Up @@ -42,6 +42,8 @@ ruleTester.run("no-undefined", rule, {
{ code: "function f(undefined) {}", errors },
{ code: "var undefined;", errors },
{ code: "try {} catch(undefined) {}", errors },
{ code: "(function undefined(){}())", errors }
{ code: "(function undefined(){}())", errors },
{ code: "undefined = true", errors },
{ code: "var undefined = true", errors }
]
});

0 comments on commit a7bd66a

Please sign in to comment.