This commit is contained in:
Antoni Kepinski 2020-09-05 14:51:31 +02:00
parent 7d190b46f8
commit 38839c53bd
No known key found for this signature in database
GPG Key ID: C15767C6F117A9B6
1 changed files with 3 additions and 1 deletions

View File

@ -2000,7 +2000,9 @@ describe('node-fetch', () => {
it('should reject if attempt to accumulate body stream throws', () => {
const res = new Response(stream.Readable.from((async function * () {
yield Buffer.from('tada');
await new Promise(resolve => setTimeout(resolve, 200));
await new Promise(resolve => {
setTimeout(resolve, 200);
});
yield {tada: 'yes'};
})()));