Skip to content

Commit 12c2931

Browse files
committed
fix: use concatMap in test
1 parent e95166f commit 12c2931

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/asynciterable-operators/finalize-spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { hasNext, hasErr, noNext } from '../asynciterablehelpers.js';
22
import { range, throwError } from 'ix/asynciterable/index.js';
3-
import { flatMap, finalize, tap } from 'ix/asynciterable/operators/index.js';
3+
import { finalize, tap, concatMap } from 'ix/asynciterable/operators/index.js';
44

55
test('AsyncIterable#finalize defers behavior', async () => {
66
let done = false;
@@ -79,7 +79,7 @@ test('AsyncIterable#finalize calls with downstream error from flattening', async
7979
finalize(async () => {
8080
done = true;
8181
}),
82-
flatMap(async (x) => {
82+
concatMap(async (x) => {
8383
// srcValues.push(x);
8484
if (x === 1) {
8585
return throwError(err);

0 commit comments

Comments
 (0)