fix: fix all biome

This commit is contained in:
2025-01-31 05:57:51 +08:00
parent 316361bd3c
commit c9d0066d64
114 changed files with 2255 additions and 2068 deletions

View File

@@ -1,10 +1,11 @@
import { type Observable, of } from 'rxjs';
import { switchMap } from 'rxjs/operators';
import { vi } from 'vitest';
// Create retriable observable stream to test retry / retryWhen. Credits to:
// https://stackoverflow.com/questions/51399819/how-to-create-a-mock-observable-to-test-http-rxjs-retry-retrywhen-in-angular
export const createRetriableStream = (...resp$: any): Observable<any> => {
const fetchData: jasmine.Spy = jasmine.createSpy('fetchData');
const fetchData = vi.fn()('fetchData');
fetchData.mockReturnValues(...resp$);