summaryrefslogtreecommitdiff
path: root/tests/node_compat/test/parallel/test-fs-write-file-buffer.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-06-11 12:41:44 +0100
committerGitHub <noreply@github.com>2024-06-11 11:41:44 +0000
commit6a356aff1380e79d67738c5b43aa2b5fee76600d (patch)
treebe4aadc62a523ff280820958a1a3829f1a18ca7d /tests/node_compat/test/parallel/test-fs-write-file-buffer.js
parent3d41b486da7dcba49c8a18b45425e356c329d986 (diff)
chore: sync up Node.js test files for v20.11.1 (#24066)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'tests/node_compat/test/parallel/test-fs-write-file-buffer.js')
-rw-r--r--tests/node_compat/test/parallel/test-fs-write-file-buffer.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/node_compat/test/parallel/test-fs-write-file-buffer.js b/tests/node_compat/test/parallel/test-fs-write-file-buffer.js
index 6de3eadd5..d0bfd32aa 100644
--- a/tests/node_compat/test/parallel/test-fs-write-file-buffer.js
+++ b/tests/node_compat/test/parallel/test-fs-write-file-buffer.js
@@ -28,7 +28,6 @@
'use strict';
require('../common');
-const join = require('path').join;
const util = require('util');
const fs = require('fs');
@@ -57,6 +56,6 @@ const tmpdir = require('../common/tmpdir');
tmpdir.refresh();
const buf = Buffer.from(data, 'base64');
-fs.writeFileSync(join(tmpdir.path, 'test.jpg'), buf);
+fs.writeFileSync(tmpdir.resolve('test.jpg'), buf);
util.log('Done!');