Skip to content

Commit

Permalink
test: add test for readStream.path when fd is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayase-252 committed Oct 7, 2021
1 parent 88e82b8 commit 738c51d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/parallel/test-fs-read-stream-fd.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ fs.writeFileSync(file, input);
const fd = fs.openSync(file, 'r');
const stream = fs.createReadStream(null, { fd: fd, encoding: 'utf8' });

assert.strictEqual(stream.path, undefined);

stream.on('data', common.mustCallAtLeast((data) => {
output += data;
}));
Expand Down

0 comments on commit 738c51d

Please sign in to comment.