smartstream/test/test.ts
2017-06-30 18:32:32 +02:00

16 lines
413 B
TypeScript

import fs = require('fs')
import { expect, tap } from 'tapbundle'
import * as smartstream from '../dist/index'
let testSmartstream: smartstream.Smartstream
tap.test('should combine a stream', async () => {
testSmartstream = new smartstream.Smartstream([
fs.createReadStream('./test/assets/test.md'),
fs.createWriteStream('./test/assets/testCopy.md')
])
await testSmartstream.run()
})
tap.start()