smartstream/test/test.ts

16 lines
413 B
TypeScript
Raw Normal View History

2016-09-25 12:00:16 +00:00
import fs = require('fs')
2017-06-30 16:32:32 +00:00
import { expect, tap } from 'tapbundle'
2016-09-25 12:00:16 +00:00
import * as smartstream from '../dist/index'
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')
])
await testSmartstream.run()
})
2016-09-25 12:00:16 +00:00
2017-06-30 16:32:32 +00:00
tap.start()