fix: fix all biome
This commit is contained in:
@@ -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$);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user