1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
verdaccio/test/unit/mystreams.js

18 lines
363 B
JavaScript
Raw Normal View History

2013-12-27 14:06:57 +01:00
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 Error('fail')
}
}, 10)
})
2013-12-27 14:06:57 +01:00
})