Skip to content

Commit 3ef05aa

Browse files
fix(fetch): added logs to test and cleanup
1 parent cc64c16 commit 3ef05aa

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

packages/operators/src/fetch/concurrentDownload.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { concatAll, map, of } from 'rxjs';
22
import { beforeEach, describe, expect, test } from 'vitest';
33

4+
import { log } from '../log';
45
import { concurrentDownload } from './concurrentDownload';
56
import { resolveJSON } from './resolve';
67

@@ -24,7 +25,9 @@ describe('multi fetch', function () {
2425
)
2526
.pipe(
2627
concurrentDownload(4),
28+
log(false),
2729
resolveJSON(),
30+
log(false),
2831
map(({ products }) => products),
2932
concatAll()
3033
)

packages/operators/src/fetch/polling.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { delay, expand, of } from 'rxjs';
22

3-
import { log } from '../log';
43
import { download } from './download';
54
import { distinctUntilResponseChanged } from './response';
65

packages/operators/src/fetch/retry.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ describe('request retry', function () {
1616
test('network retry', async function () {
1717
let counter = 0;
1818

19-
const mockObservable = of(null)
20-
.pipe(map(() => ({ ok: !(++counter < 3) })))
21-
.pipe(networkRetry({ timeout: () => 1000 }));
19+
const mockObservable = of(null).pipe(
20+
map(() => ({ ok: !(++counter < 3) })),
21+
networkRetry({ timeout: () => 1000 })
22+
);
2223

2324
testScheduler.run(({ expectObservable }) => {
2425
expectObservable(mockObservable).toBe('2000ms (a|)', {

0 commit comments

Comments
 (0)