nodejs/test/parallel/test-stream-pipeline-with-empty-string.js

19 lines
273 B
JavaScript
Raw Normal View History

'use strict';
const common = require('../common');
const {
pipeline,
PassThrough
} = require('stream');
async function runTest() {
await pipeline(
'',
new PassThrough({ objectMode: true }),
common.mustCall(),
);
}
runTest().then(common.mustCall());