0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-03 23:09:17 -05:00
verdaccio/test/unit/mystreams.js

20 lines
388 B
JavaScript
Raw Normal View History

2017-04-19 21:15:28 +02:00
'use strict';
let ReadTarball = require('../../lib/streams').ReadTarballStream;
2013-12-27 17:06:57 +04:00
describe('mystreams', function() {
it('should delay events', function(cb) {
2017-04-19 21:15:28 +02:00
let test = new ReadTarball();
test.abort();
setTimeout(function() {
test.abort = function() {
2017-04-19 21:15:28 +02:00
cb();
};
test.abort = function() {
2017-04-19 21:15:28 +02:00
throw Error('fail');
};
}, 10);
});
});
2013-12-27 17:06:57 +04:00