aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-17 22:26:58 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-17 22:28:28 -0800
commit8ff1ff16a5e7446313836dffabcfb95117976c78 (patch)
treeca38a8ea8d9bd13ad012cb5359eb00dc8bb305ae
parent7285b9cf75bc3c243db858371505ece141b6ae3d (diff)
downloadbun-8ff1ff16a5e7446313836dffabcfb95117976c78.tar.gz
bun-8ff1ff16a5e7446313836dffabcfb95117976c78.tar.zst
bun-8ff1ff16a5e7446313836dffabcfb95117976c78.zip
Update fs.test.js
Diffstat (limited to '')
-rw-r--r--test/bun.js/fs.test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/bun.js/fs.test.js b/test/bun.js/fs.test.js
index 9408a7e64..ce5209c53 100644
--- a/test/bun.js/fs.test.js
+++ b/test/bun.js/fs.test.js
@@ -628,7 +628,7 @@ describe("fs.WriteStream", () => {
it("should be able to write to a file", done => {
const pathToDir = `${tmpdir()}/${Date.now()}`;
mkdirForce(pathToDir);
- const path = `${pathToDir}/fs-writestream-test.txt`;
+ const path = join(pathToDir, `fs-writestream-test.txt`);
const stream = new fs.WriteStream(path, { flags: "w+" });
stream.write("Test file written successfully");
@@ -675,7 +675,7 @@ describe("fs.WriteStream", () => {
it("should be able to write to a file with re-exported WriteStream", done => {
const pathToDir = `${tmpdir()}/${Date.now()}`;
mkdirForce(pathToDir);
- const path = `${pathToDir}/fs-writestream-re-exported-test.txt`;
+ const path = join(pathToDir, `fs-writestream-re-exported-test.txt`);
const stream = new WriteStream_(path, { flags: "w+" });
stream.write("Test file written successfully");
@@ -705,7 +705,7 @@ describe("fs.ReadStream", () => {
it("should be able to read from a file", done => {
const pathToDir = `${tmpdir()}/${Date.now()}`;
mkdirForce(pathToDir);
- const path = `${pathToDir}fs-readstream-test.txt`;
+ const path = join(pathToDir, `fs-readstream-test.txt`);
writeFileSync(path, "Test file written successfully", {
encoding: "utf8",
@@ -761,7 +761,7 @@ describe("fs.ReadStream", () => {
it("should be able to read from a file, with re-exported ReadStream", done => {
const pathToDir = `${tmpdir()}/${Date.now()}`;
mkdirForce(pathToDir);
- const path = `${pathToDir}fs-readstream-re-exported-test.txt`;
+ const path = join(pathToDir, `fs-readstream-re-exported-test.txt`);
writeFileSync(path, "Test file written successfully", {
encoding: "utf8",