2022-06-07 16:32:08 +00:00
|
|
|
import * as smartfile from '@pushrocks/smartfile';
|
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([
|
2022-06-07 16:32:08 +00:00
|
|
|
smartfile.fsStream.createReadStream('./test/assets/test.md'),
|
|
|
|
smartfile.fsStream.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();
|