Skip to content

Commit 4e6e6ca

Browse files
committed
Fix lint errors
1 parent d89ecda commit 4e6e6ca

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ describe('NgHttpLoaderComponent', () => {
184184
http.get(
185185
'/api/service',
186186
{
187-
'params': {
188-
'foo': 'bar'
187+
params: {
188+
foo: 'bar'
189189
}
190190
}
191191
).subscribe();

src/test/ng-http-loader.module.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ describe('NgHttpLoaderModule', () => {
2323

2424
it('should create an instance with providers via forRoot()', () => {
2525
const ngHttpLoaderModuleWithProviders = NgHttpLoaderModule.forRoot();
26-
expect(ngHttpLoaderModuleWithProviders.providers[0][0]['useExisting'].name).toEqual(PendingRequestsInterceptor.name);
26+
expect(ngHttpLoaderModuleWithProviders.providers[0][0].useExisting.name).toEqual(PendingRequestsInterceptor.name);
2727
});
2828
});

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,17 @@ describe('PendingRequestsInterceptor', () => {
8080
}));
8181

8282
it('should fail correctly', () => {
83-
const statusText = 'NOT FOUND';
83+
const statusTextNotFound = 'NOT FOUND';
8484

8585
http.get('/fake').subscribe(
8686
() => expect(true).toBe(false),
87-
(error: HttpErrorResponse) => expect(error.statusText).toBe(statusText)
87+
(error: HttpErrorResponse) => expect(error.statusText).toBe(statusTextNotFound)
8888
);
8989

9090
const testRequest = httpMock.expectOne('/fake');
9191
testRequest.flush({}, {
92-
'status': 404,
93-
'statusText': statusText
92+
status: 404,
93+
statusText: statusTextNotFound
9494
});
9595
httpMock.verify();
9696
});

0 commit comments

Comments
 (0)