Skip to content

Commit

Permalink
fix: use concatMap in test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeengbe committed Jan 22, 2025
1 parent e95166f commit 12c2931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/asynciterable-operators/finalize-spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { hasNext, hasErr, noNext } from '../asynciterablehelpers.js';
import { range, throwError } from 'ix/asynciterable/index.js';
import { flatMap, finalize, tap } from 'ix/asynciterable/operators/index.js';
import { finalize, tap, concatMap } from 'ix/asynciterable/operators/index.js';

test('AsyncIterable#finalize defers behavior', async () => {
let done = false;
Expand Down Expand Up @@ -79,7 +79,7 @@ test('AsyncIterable#finalize calls with downstream error from flattening', async
finalize(async () => {
done = true;
}),
flatMap(async (x) => {
concatMap(async (x) => {
// srcValues.push(x);
if (x === 1) {
return throwError(err);
Expand Down

0 comments on commit 12c2931

Please sign in to comment.