2026-02-28 08:48:58 +00:00
|
|
|
import * as fs from 'fs';
|
2023-07-12 11:27:46 +02:00
|
|
|
import { expect, tap } from '@push.rocks/tapbundle';
|
2016-09-25 14:00:16 +02:00
|
|
|
|
2022-06-07 16:16:14 +02:00
|
|
|
import * as smartstream from '../ts/smartstream.classes.streamwrapper.js';
|
2016-09-25 14:00:16 +02:00
|
|
|
|
2022-06-07 16:16:14 +02:00
|
|
|
let testSmartstream: smartstream.StreamWrapper;
|
2017-06-30 18:32:32 +02:00
|
|
|
tap.test('should combine a stream', async () => {
|
2022-06-07 16:16:14 +02:00
|
|
|
testSmartstream = new smartstream.StreamWrapper([
|
2026-02-28 08:48:58 +00:00
|
|
|
fs.createReadStream('./test/assets/test.md'),
|
|
|
|
|
fs.createWriteStream('./test/assets/testCopy.md'),
|
2019-02-19 01:10:56 +01:00
|
|
|
]);
|
|
|
|
|
await testSmartstream.run();
|
|
|
|
|
});
|
2016-09-25 14:00:16 +02:00
|
|
|
|
2026-02-28 08:48:58 +00:00
|
|
|
export default tap.start();
|