Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Nov 26, 2024
1 parent 77cc824 commit 9f42b66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/js/web/fetch/body-stream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ for (let doClone of [true, false]) {
},
async url => {
called = true;
expect(await fetch(url).then(res => res.text())).toContain(
"Welcome to Bun! To get started, return a Response object.",
);
// if we can flush it will be "hey" otherwise will be empty
expect(await fetch(url).then(res => res.text())).toBeOneOf(["hey", ""]);
},
);

Expand Down

0 comments on commit 9f42b66

Please sign in to comment.