0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00
verdaccio/test/unit/mystreams.js

19 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);
});
});