mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
18 lines
337 B
JavaScript
18 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)
|
||
|
})
|
||
|
})
|
||
|
|