Skip to content

Commit 05c58fb

Browse files
committed
Code style
1 parent 980468d commit 05c58fb

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

test/services/pending-interceptor.service.spec.ts

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,31 +33,30 @@ describe('PendingInterceptorService', () => {
3333
expect(service).toBeTruthy();
3434
}));
3535

36-
it('should be aware of the pending http requests',
37-
inject(
38-
[PendingInterceptorService, HttpClient, HttpTestingController],
39-
(service: PendingInterceptorService, http: HttpClient, httpMock: HttpTestingController) => {
36+
it('should be aware of the pending http requests', inject(
37+
[PendingInterceptorService, HttpClient, HttpTestingController],
38+
(service: PendingInterceptorService, http: HttpClient, httpMock: HttpTestingController) => {
4039

41-
function runQuery(url: string): Observable<any> {
42-
return http.get(url);
43-
}
40+
function runQuery(url: string): Observable<any> {
41+
return http.get(url);
42+
}
4443

45-
Observable.forkJoin([runQuery('/fake'), runQuery('/fake2')]).subscribe();
44+
Observable.forkJoin([runQuery('/fake'), runQuery('/fake2')]).subscribe();
4645

47-
const firstRequest = httpMock.expectOne('/fake');
48-
const secondRequest = httpMock.expectOne('/fake2');
46+
const firstRequest = httpMock.expectOne('/fake');
47+
const secondRequest = httpMock.expectOne('/fake2');
4948

50-
expect(service.pendingRequests).toBe(2);
51-
firstRequest.flush({});
49+
expect(service.pendingRequests).toBe(2);
50+
firstRequest.flush({});
5251

53-
expect(service.pendingRequests).toBe(1);
54-
secondRequest.flush({});
52+
expect(service.pendingRequests).toBe(1);
53+
secondRequest.flush({});
5554

56-
expect(service.pendingRequests).toBe(0);
55+
expect(service.pendingRequests).toBe(0);
5756

58-
httpMock.verify();
59-
})
60-
);
57+
httpMock.verify();
58+
}
59+
));
6160

6261
it('should correctly notify the pendingRequestsStatus observable', async(
6362
inject(

0 commit comments

Comments
 (0)