Skip to content

Commit

Permalink
Remove path to missing file (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
amytych committed Dec 14, 2020
1 parent f7c53fe commit ed21788
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions fix-coverage.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
var fs = require("fs"),
var fs = require("fs"),
prefix = "var __decorate =",
paths = [
"built/src/promisedComputed.js",
"built/src/deprecatedComputedAsync.js",
];

paths.forEach(path => {

// tell istanbul to ignore TS-generated decorator code
// tell istanbul to ignore TS-generated decorator code
var src = fs.readFileSync(path, "utf8");
src = src.replace(prefix, "/* istanbul ignore next */\n" + prefix);
fs.writeFileSync(path, src);
Expand Down

0 comments on commit ed21788

Please sign in to comment.