Skip to content

Commit

Permalink
And we have 100% code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Jun 14, 2021
1 parent a792b06 commit 3cbb5cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"coverageThreshold": {
"global": {
"statements": 100,
"branches": 98,
"branches": 100,
"functions": 100,
"lines": 100
}
Expand Down
1 change: 1 addition & 0 deletions rules/duplicated.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function rule(analyzer) {
analyzer.on("rule", function (rule) {
var propertiesHash = {};

/* istanbul ignore else */
if (rule.declarations) {
rule.declarations.forEach(function (declaration) {
var propertyName;
Expand Down
2 changes: 1 addition & 1 deletion rules/propertyResets.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function rule(analyzer) {
analyzer.setMetric("propertyResets");

analyzer.on("selector", function (rule, selector) {
var declarations = rule.declarations || [],
var declarations = rule.declarations,
properties;

// prepare the list of properties used in this selector
Expand Down

0 comments on commit 3cbb5cf

Please sign in to comment.