mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
6a778e8c17
close #155, see reasons there This is a huge commit, so let me know if it will cause any trouble, I might consider reverting it if it's the case.
18 lines
363 B
JavaScript
18 lines
363 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 Error('fail')
|
|
}
|
|
}, 10)
|
|
})
|
|
})
|
|
|