0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-23 22:27:34 -05:00
verdaccio/test/unit/mystreams.js

20 lines
394 B
JavaScript
Raw Normal View History

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