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
2017-06-10 18:48:20 +02:00

19 lines
382 B
JavaScript

'use strict';
let ReadTarball = require('../../lib/streams').ReadTarball;
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);
});
});