Skip to content

Commit a5778f9

Browse files
committed
add missing awaits
1 parent 980270b commit a5778f9

File tree

8 files changed

+2
-1633
lines changed

8 files changed

+2
-1633
lines changed

Diff for: lib/commands/check-coverage.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ exports.handler = function (argv) {
2525
exports.checkCoverages(argv, report)
2626
}
2727

28-
exports.checkCoverages = function (argv, report) {
28+
exports.checkCoverages = async function (argv, report) {
2929
const thresholds = {
3030
lines: argv.lines,
3131
functions: argv.functions,
3232
branches: argv.branches,
3333
statements: argv.statements
3434
}
35-
const map = report.getCoverageMapFromAllCoverageFiles()
35+
const map = await report.getCoverageMapFromAllCoverageFiles()
3636
if (argv.perFile) {
3737
map.files().forEach(file => {
3838
checkCoverage(map.fileCoverageFor(file).toSummary(), thresholds, file)

Diff for: test/fixtures/source-maps/nyc.covered.js

-297
This file was deleted.

Diff for: test/fixtures/source-maps/nyc.covered.min.js

-2
This file was deleted.

Diff for: test/fixtures/source-maps/nyc.js

-25
This file was deleted.

0 commit comments

Comments
 (0)