Skip to content

Commit 4dc80cd

Browse files
committed
Remove runQuery function
1 parent 55bf71c commit 4dc80cd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/test/components/ng-http-loader.component.spec.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,7 @@ describe('NgHttpLoaderComponent', () => {
501501
[HttpClient, HttpTestingController], (http: HttpClient, httpMock: HttpTestingController) => {
502502
component.minDuration = 2000;
503503

504-
function runQuery(url: string): Observable<any> {
505-
return http.get(url);
506-
}
507-
508-
runQuery('/fake').subscribe();
504+
http.get('/fake').subscribe();
509505
const firstRequest = httpMock.expectOne('/fake');
510506

511507
tick(1000);
@@ -518,7 +514,7 @@ describe('NgHttpLoaderComponent', () => {
518514

519515
// But 200 ms after the first HTTP request has finished, a second HTTP request is launched
520516
tick(200);
521-
runQuery('/fake2').subscribe();
517+
http.get('/fake2').subscribe();
522518
const secondRequest = httpMock.expectOne('/fake2');
523519
expect(component.isSpinnerVisible).toBeTruthy();
524520

0 commit comments

Comments
 (0)