Skip to content

Commit

Permalink
Update toEmitAnything to use peek instead of take
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jan 24, 2025
1 parent 388cbdd commit 531653f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/matchers/toEmitAnything.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const toEmitAnything: MatcherFunction<[options?: TakeOptions]> =
const hint = this.utils.matcherHint("toEmitAnything", "stream", "");

try {
const value = await stream.take(options);
const value = await stream.peek(options);

return {
pass: true,
Expand Down

0 comments on commit 531653f

Please sign in to comment.