Skip to content

Commit

Permalink
Merge pull request #390 from MurhafSousli/release/14.0.0
Browse files Browse the repository at this point in the history
Lint
  • Loading branch information
MurhafSousli authored Jan 4, 2025
2 parents 34477e6 + 8561e2b commit 07b9d66
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- name: Build
run: npm run build-lib

- name: Lint
run: npm run lint-lib

- name: Test
run: npm run test-lib-headless

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
import { inject, untracked, WritableSignal } from '@angular/core';
import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
import { finalize, Observable } from 'rxjs';
import { NgProgressHttpCounter } from './ng-progress-http-counter';
import { NG_PROGRESS_HTTP_OPTIONS, NgProgressHttpOptions } from './ng-progress-http.model';
Expand Down Expand Up @@ -35,7 +35,7 @@ export function progressInterceptor(req: HttpRequest<unknown>, next: HttpHandler
/**
* Check if request is silent.
*/
function checkUrl(req: HttpRequest<any>, config: NgProgressHttpOptions): boolean {
function checkUrl(req: HttpRequest<unknown>, config: NgProgressHttpOptions): boolean {
const url: string = req.url.toLowerCase();

if (config.matcher && config.silentApis?.length) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('NgProgressRef', () => {
directive['_active'].set(false);
// Mock onTrickling call
directive['onTrickling']({ min: 5 }).subscribe(() => {
expect(setSpy).toHaveBeenCalledWith(5 as any);
expect(setSpy).toHaveBeenCalledWith(5);
done();
});
});
Expand Down

0 comments on commit 07b9d66

Please sign in to comment.