Skip to content
Permalink
Browse files

Chore: add test case for no-func-assign (refs #13705) (#13783)

* 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 17cc0dd9b5d2d500359c36881cd3e5637443c133
Showing with 8 additions and 0 deletions.
  1. +8 −0 tests/lib/rules/no-func-assign.js
@@ -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.
You can’t perform that action at this time.