Skip to content

Commit

Permalink
Chore: add test case for no-func-assign (refs #13705) (#13783)
Browse files Browse the repository at this point in the history
* Chore: add test case for no-func-assign (refs #13705)

* Chore: Update tests/lib/rules/no-func-assign.js
  • Loading branch information
snitin315 committed Oct 22, 2020
1 parent dee0f77 commit 17cc0dd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/lib/rules/no-func-assign.js
Expand Up @@ -88,6 +88,14 @@ ruleTester.run("no-func-assign", rule, {
data: { name: "foo" },
type: "Identifier"
}]
},
{
code: "var a = function foo() { foo = 123; };",
errors: [{
messageId: "isAFunction",
data: { name: "foo" },
type: "Identifier"
}]
}
]
});

0 comments on commit 17cc0dd

Please sign in to comment.