Updating NPM dependencies
This commit is contained in:
12
node_modules/istanbul-reports/lib/html/annotator.js
generated
vendored
12
node_modules/istanbul-reports/lib/html/annotator.js
generated
vendored
@@ -34,8 +34,7 @@ function annotateLines(fileCoverage, structuredText) {
|
||||
if (!lineStats) {
|
||||
return;
|
||||
}
|
||||
Object.keys(lineStats).forEach(lineNumber => {
|
||||
const count = lineStats[lineNumber];
|
||||
Object.entries(lineStats).forEach(([lineNumber, count]) => {
|
||||
if (structuredText[lineNumber]) {
|
||||
structuredText[lineNumber].covered = count > 0 ? 'yes' : 'no';
|
||||
structuredText[lineNumber].hits = count;
|
||||
@@ -46,8 +45,7 @@ function annotateLines(fileCoverage, structuredText) {
|
||||
function annotateStatements(fileCoverage, structuredText) {
|
||||
const statementStats = fileCoverage.s;
|
||||
const statementMeta = fileCoverage.statementMap;
|
||||
Object.keys(statementStats).forEach(stName => {
|
||||
const count = statementStats[stName];
|
||||
Object.entries(statementStats).forEach(([stName, count]) => {
|
||||
const meta = statementMeta[stName];
|
||||
const type = count > 0 ? 'yes' : 'no';
|
||||
const startCol = meta.start.column;
|
||||
@@ -85,8 +83,7 @@ function annotateFunctions(fileCoverage, structuredText) {
|
||||
if (!fnStats) {
|
||||
return;
|
||||
}
|
||||
Object.keys(fnStats).forEach(fName => {
|
||||
const count = fnStats[fName];
|
||||
Object.entries(fnStats).forEach(([fName, count]) => {
|
||||
const meta = fnMeta[fName];
|
||||
const type = count > 0 ? 'yes' : 'no';
|
||||
const startCol = meta.decl.start.column;
|
||||
@@ -125,8 +122,7 @@ function annotateBranches(fileCoverage, structuredText) {
|
||||
return;
|
||||
}
|
||||
|
||||
Object.keys(branchStats).forEach(branchName => {
|
||||
const branchArray = branchStats[branchName];
|
||||
Object.entries(branchStats).forEach(([branchName, branchArray]) => {
|
||||
const sumCount = branchArray.reduce((p, n) => p + n, 0);
|
||||
const metaArray = branchMeta[branchName].locations;
|
||||
let i;
|
||||
|
||||
Reference in New Issue
Block a user