Skip to content

Commit

Permalink
Node 14 and 16 need manual polyfilling
Browse files Browse the repository at this point in the history
  • Loading branch information
larabr committed Oct 10, 2023
1 parent f976e0c commit 7ffd50c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/general/node-conversions.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from 'stream' ;
import { promisify } from 'util';

import { nodeToWeb, webToNode } from '../../lib/streams';
import { nodeToWeb, webToNode, loadStreamsPonyfill } from '../../lib/streams';

async function readStreamToString(readable) {
const chunks = [];
Expand All @@ -21,6 +21,8 @@ async function readStreamToString(readable) {
describe('Node Conversions', function () {
let input;

before(async () => loadStreamsPonyfill());

beforeEach(function () {
input = webToNode(nodeToWeb(NodeReadable.from(['a', 'b', 'c'])));
});
Expand Down

0 comments on commit 7ffd50c

Please sign in to comment.