Skip to content

Commit bf4637b

Browse files
committed
Add test when functions were imported
1 parent 724593a commit bf4637b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/lib/rules/no-runloop.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ eslintTester.run('no-runloop', rule, {
8787
function constructor() {};
8888
constructor();
8989
`,
90+
`
91+
import { hasOwnProperty, isPrototypeOf, propertyIsEnumerable, toLocaleString, toString, valueOf, constructor } from './util';
92+
93+
hasOwnProperty();
94+
isPrototypeOf();
95+
propertyIsEnumerable();
96+
toLocaleString();
97+
toString();
98+
valueOf();
99+
constructor();
100+
`,
90101
],
91102
invalid: [
92103
{

0 commit comments

Comments
 (0)