mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
test(route) coverage
This commit is contained in:
parent
b5618412c3
commit
b090b498a8
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue