Closed edg2s closed 2 years ago
Merging #283 (4ff6aae) into master (3ab0b0b) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## master #283 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 101 101
Lines 583 583
=========================================
Hits 583 583
Impacted Files | Coverage Δ | |
---|---|---|
src/rules/variable-pattern.js | 100.00% <ø> (ø) |
|
src/utils.js | 100.00% <100.00%> (ø) |
Previously testing
$div
infoo($div)
would returnfalse
as it assumed that if$div
's parent node was aCallExpression
, that$div
was the node being invoked, and so only returnedtrue
iff the jQuery constructor was detected.Add in a
node.parent.calleee = node
check to fix this.Add some extra unit tests to variable-pattern, although none of these excercise the new check.