We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fdb45b commit 3d49687Copy full SHA for 3d49687
test/parallel/test-fs-promises-file-handle-read.js
@@ -87,8 +87,7 @@ async function validateReadWithPositionZero() {
87
}
88
89
90
-async function validateReadLength() {
91
- const len = 1;
+async function validateReadLength(len) {
92
const buf = Buffer.alloc(4);
93
const opts = { useConf: true };
94
const filePath = fixtures.path('x.txt');
@@ -108,5 +107,6 @@ async function validateReadLength() {
108
107
await validateLargeRead({ useConf: true });
109
await validateReadNoParams();
110
await validateReadWithPositionZero();
111
- await validateReadLength();
+ await validateReadLength(0);
+ await validateReadLength(1);
112
})().then(common.mustCall());
0 commit comments