mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
2ee4f38743
Refactor methods to camelCase Relocate utilities
19 lines
390 B
JavaScript
19 lines
390 B
JavaScript
'use strict';
|
|
|
|
let ReadTarball = require('../../lib/storage/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);
|
|
});
|
|
});
|
|
|