2022-03-30 23:20:01 +00:00
|
|
|
import fs from 'fs';
|
2019-02-19 00:10:56 +00:00
|
|
|
import { expect, tap } from '@pushrocks/tapbundle';
|
2016-09-25 12:00:16 +00:00
|
|
|
|
2022-06-07 14:16:14 +00:00
|
|
|
import * as smartstream from '../ts/smartstream.classes.streamwrapper.js';
|
2016-09-25 12:00:16 +00:00
|
|
|
|
2022-06-07 14:16:14 +00:00
|
|
|
let testSmartstream: smartstream.StreamWrapper;
|
2017-06-30 16:32:32 +00:00
|
|
|
tap.test('should combine a stream', async () => {
|
2022-06-07 14:16:14 +00:00
|
|
|
testSmartstream = new smartstream.StreamWrapper([
|
2017-06-30 16:32:32 +00:00
|
|
|
fs.createReadStream('./test/assets/test.md'),
|
2022-03-30 23:20:01 +00:00
|
|
|
fs.createWriteStream('./test/assets/testCopy.md'),
|
2019-02-19 00:10:56 +00:00
|
|
|
]);
|
|
|
|
await testSmartstream.run();
|
|
|
|
});
|
2016-09-25 12:00:16 +00:00
|
|
|
|
2019-02-19 00:10:56 +00:00
|
|
|
tap.start();
|