mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-13 03:35:52 +01:00
20 lines
388 B
JavaScript
20 lines
388 B
JavaScript
'use strict';
|
|
|
|
let ReadTarball = require('../../lib/streams').readTarballStream;
|
|
|
|
describe('mystreams', function() {
|
|
it('should delay events', function(cb) {
|
|
let test = new ReadTarball();
|
|
test.abort();
|
|
setTimeout(function() {
|
|
test.abort = function() {
|
|
cb();
|
|
};
|
|
test.abort = function() {
|
|
throw Error('fail');
|
|
};
|
|
}, 10);
|
|
});
|
|
});
|
|
|