Skip to content

Commit 07b9d66

Browse files
authored
Merge pull request #390 from MurhafSousli/release/14.0.0
Lint
2 parents 34477e6 + 8561e2b commit 07b9d66

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/integrate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
- name: Build
2424
run: npm run build-lib
2525

26+
- name: Lint
27+
run: npm run lint-lib
28+
2629
- name: Test
2730
run: npm run test-lib-headless
2831

projects/ngx-progressbar/http/src/ng-progress-http.interceptor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
21
import { inject, untracked, WritableSignal } from '@angular/core';
2+
import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
33
import { finalize, Observable } from 'rxjs';
44
import { NgProgressHttpCounter } from './ng-progress-http-counter';
55
import { NG_PROGRESS_HTTP_OPTIONS, NgProgressHttpOptions } from './ng-progress-http.model';
@@ -35,7 +35,7 @@ export function progressInterceptor(req: HttpRequest<unknown>, next: HttpHandler
3535
/**
3636
* Check if request is silent.
3737
*/
38-
function checkUrl(req: HttpRequest<any>, config: NgProgressHttpOptions): boolean {
38+
function checkUrl(req: HttpRequest<unknown>, config: NgProgressHttpOptions): boolean {
3939
const url: string = req.url.toLowerCase();
4040

4141
if (config.matcher && config.silentApis?.length) {

projects/ngx-progressbar/src/lib/tests/ng-progress-ref.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ describe('NgProgressRef', () => {
6060
directive['_active'].set(false);
6161
// Mock onTrickling call
6262
directive['onTrickling']({ min: 5 }).subscribe(() => {
63-
expect(setSpy).toHaveBeenCalledWith(5 as any);
63+
expect(setSpy).toHaveBeenCalledWith(5);
6464
done();
6565
});
6666
});

0 commit comments

Comments
 (0)