smartstream/test/test.ts

20 lines
557 B
TypeScript
Raw Normal View History

2016-09-25 12:00:16 +00:00
import 'typings-test'
import fs = require('fs')
import * as should from 'should'
import * as smartstream from '../dist/index'
let testSmartstream: smartstream.Smartstream
describe('smartstream', function() {
it('should combine a stream', function(done){
this.timeout(5000)
2016-09-25 12:00:16 +00:00
testSmartstream = new smartstream.Smartstream([
fs.createReadStream('./test/assets/test.md'),
fs.createWriteStream('./test/assets/testCopy.md')
])
testSmartstream.run().then(() => {
done()
})
2016-09-25 12:00:16 +00:00
})
})