smartstream/test/test.ts

16 lines
430 B
TypeScript
Raw Normal View History

2019-02-19 00:10:56 +00:00
import fs = require('fs');
import { expect, tap } from '@pushrocks/tapbundle';
2016-09-25 12:00:16 +00:00
2019-02-19 00:10:56 +00:00
import * as smartstream from '../ts/index';
2016-09-25 12:00:16 +00:00
2019-02-19 00:10:56 +00:00
let testSmartstream: smartstream.Smartstream;
2017-06-30 16:32:32 +00:00
tap.test('should combine a stream', async () => {
testSmartstream = new smartstream.Smartstream([
fs.createReadStream('./test/assets/test.md'),
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();