0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/test/unit/mystreams.js
Alex Kocharin f3f4fdc4ac tests
2013-12-27 17:06:57 +04:00

17 lines
337 B
JavaScript

var ReadTarball = require('../../lib/streams').ReadTarballStream
describe('mystreams', function() {
it('should delay events', function(cb) {
var test = new ReadTarball()
test.abort()
setTimeout(function() {
test.abort = function() {
cb()
}
test.abort = function() {
throw new Error('fail')
}
}, 10)
})
})