Skip to content

Commit

Permalink
tests: make comment clear about fs.copyFileSync
Browse files Browse the repository at this point in the history
  • Loading branch information
hemal7735 authored and evenstensberg committed Feb 5, 2019
1 parent c9c5832 commit d1d3d02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const copyFilePath = path.resolve(__dirname, copyFile);
// create copy of "index.js" => "index_copy.js"
beforeEach(() => {
// fs.copyFileSync was added in Added in: v8.5.0
// We should migrate it once we stop support for v6.x
// We should refactor the below code once our minimal supported version is v8.5.0
fs.createReadStream(fileToChangePath).pipe(fs.createWriteStream(copyFilePath));
});

Expand Down

0 comments on commit d1d3d02

Please sign in to comment.