Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Cinos committed Jul 5, 2022
1 parent 46f4619 commit 391bc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const testWithFlags = async (flags:string[]) => {
const streamToString = (stream:Readable) => {
const chunks:Uint8Array[] = [];
return new Promise((resolve, reject) => {
stream.on('data', (chunk:Uint8Array[]) => chunks.push(Buffer.from(chunk)));
stream.on('data', (chunk) => chunks.push(Buffer.from(chunk)));
stream.on('error', (err) => reject(err));
stream.on('end', () => resolve(Buffer.concat(chunks).toString('utf8')));
});
Expand Down

0 comments on commit 391bc07

Please sign in to comment.