Add fs.writeFileSync overloads and tests

This commit is contained in:
kimu_shu
2017-06-28 11:58:01 +09:00
parent c126a9ec44
commit 1205f064bd
9 changed files with 18 additions and 0 deletions

View File

@@ -169,6 +169,9 @@ namespace fs_tests {
encoding: "ascii"
},
assert.ifError);
fs.writeFileSync("testfile", "content", "utf8");
fs.writeFileSync("testfile", "content", { encoding: "utf8" });
}
{