Skip to content

Commit e430687

Browse files
chore(deps): lock file maintenance (#196)
1 parent b6b44bc commit e430687

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

package-lock.json

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ const getError = (id, expected, categories, audits) => {
7272
};
7373

7474
const formatResults = ({ results, thresholds }) => {
75-
const categories = Object.values(
76-
results.lhr.categories,
77-
).map(({ title, score, id, auditRefs }) => ({ title, score, id, auditRefs }));
75+
const categories = Object.values(results.lhr.categories).map(
76+
({ title, score, id, auditRefs }) => ({ title, score, id, auditRefs }),
77+
);
7878

79-
const categoriesBelowThreshold = Object.entries(
80-
thresholds,
81-
).filter(([id, expected]) => belowThreshold(id, expected, categories));
79+
const categoriesBelowThreshold = Object.entries(thresholds).filter(
80+
([id, expected]) => belowThreshold(id, expected, categories),
81+
);
8282

8383
const errors = categoriesBelowThreshold.map(([id, expected]) =>
8484
getError(id, expected, categories, results.lhr.audits),

0 commit comments

Comments
 (0)