test(route) coverage

This commit is contained in:
coderaiser 2021-03-16 17:54:44 +02:00
parent b5618412c3
commit b090b498a8

View file

@ -459,7 +459,10 @@ test('cloudcmd: route: content length', async (t) => {
});
test('cloudcmd: route: read: root', async (t) => {
const read = stub();
const stream = Readable.from('hello');
stream.contentLength = 5;
const read = stub().returns(stream);
mockRequire('win32', {
read,