smartstream/test/test.ts

16 lines
524 B
TypeScript
Raw Normal View History

2023-07-12 09:27:46 +00:00
import * as smartfile from '@push.rocks/smartfile';
import { expect, tap } from '@push.rocks/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();