Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function htmlHead(details) {
return `
<title>Code coverage report for ${html.escape(details.entity)}</title>
<style type="text/css">
.coverage-summary .sorter {
background-image: url(${html.escape(details.sorter.image)});
}
</style>
`;
}
<div class="push"></div>
<div class="footer quiet pad2 space-top1 center small">
Code coverage generated by
<a href="https://istanbul.js.org/">istanbul</a>
at ${html.escape(details.datetime)}
</div>
`;
}
function footerTemplate(details) {
return `
<div class="push"></div>
<div class="footer quiet pad2 space-top1 center small">
Code coverage generated by
<a href="https://istanbul.js.org/">istanbul</a>
at ${html.escape(details.datetime)}
</div>
`;
}
function htmlHead(details) {
return `
<title>Code coverage report for ${html.escape(details.entity)}</title>
<style type="text/css">
.coverage-summary .sorter {
background-image: url(${html.escape(details.sorter.image)});
}
</style>
`;
}
key,
css = [],
keys = Object.keys(value),
i = 0, length = keys.length; i < length; i++
) {
key = keys[i];
css.push(
key.replace(hyphen, ized),
':',
asCSSValue(key, value[key]),
';'
);
}
return htmlEscape(css.join(''));
} else {
return htmlEscape(value);
}
}
function htmlHead(details) {
return `
<title>Code coverage report for ${html.escape(details.entity)}</title>
<style type="text/css">
.coverage-summary .sorter {
background-image: url(${html.escape(details.sorter.image)});
}
</style>
`;
}
function htmlHead(details) {
return `
<title>Code coverage report for ${html.escape(details.entity)}</title>
<style type="text/css">
.coverage-summary .sorter {
background-image: url(${html.escape(details.sorter.image)});
}
</style>
`;
}
result.unshift(
``,
`<div class="chart">${percentGraph(info.pct)}</div>`,
``
);
}
return result;
};
return []
.concat(
'',
`<a href="${html.escape(
output
)}">${html.escape(file)}</a>`,
summaryType('statements', true),
summaryType('branches'),
summaryType('functions'),
summaryType('lines'),
'\n'
)
.join('\n\t');
}