Skip to content

Commit ca214e2

Browse files
committed
fix: lint issues
1 parent cfa4614 commit ca214e2

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

test/parallel/test-stream-pipeline-validation.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ function assertInvalidArg(fn, name) {
150150
}),
151151
);
152152

153-
writer.write('x').then(common.mustCall(() => writer.close()));
153+
writer.write('x')
154+
.then(() => writer.close())
155+
.then(common.mustCall());
154156

155157
const transformed = [];
156158
pipeline(
@@ -171,15 +173,14 @@ function assertInvalidArg(fn, name) {
171173
}),
172174
);
173175

174-
assert.doesNotThrow(() => {
175-
pipeline(
176-
Readable.from(['x']),
177-
new TransformStream({ // destination
178-
transform() {},
179-
}),
180-
() => {},
181-
);
182-
});
176+
// Destination TransformStream should not throw
177+
pipeline(
178+
Readable.from(['x']),
179+
new TransformStream({ // destination
180+
transform() {},
181+
}),
182+
() => {},
183+
);
183184
}
184185

185186
// WritableStream

0 commit comments

Comments
 (0)