From 8561e2b44852e285a8bc6fe9e446707d7f13b2b3 Mon Sep 17 00:00:00 2001 From: Murhaf Sousli Date: Sat, 4 Jan 2025 01:24:19 +0100 Subject: [PATCH] Update --- .github/workflows/integrate.yml | 3 +++ .../ngx-progressbar/http/src/ng-progress-http.interceptor.ts | 4 ++-- .../ngx-progressbar/src/lib/tests/ng-progress-ref.spec.ts | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index e195c24..9cb16ff 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -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 diff --git a/projects/ngx-progressbar/http/src/ng-progress-http.interceptor.ts b/projects/ngx-progressbar/http/src/ng-progress-http.interceptor.ts index 05ccbd6..f4634ef 100644 --- a/projects/ngx-progressbar/http/src/ng-progress-http.interceptor.ts +++ b/projects/ngx-progressbar/http/src/ng-progress-http.interceptor.ts @@ -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'; @@ -35,7 +35,7 @@ export function progressInterceptor(req: HttpRequest, next: HttpHandler /** * Check if request is silent. */ -function checkUrl(req: HttpRequest, config: NgProgressHttpOptions): boolean { +function checkUrl(req: HttpRequest, config: NgProgressHttpOptions): boolean { const url: string = req.url.toLowerCase(); if (config.matcher && config.silentApis?.length) { diff --git a/projects/ngx-progressbar/src/lib/tests/ng-progress-ref.spec.ts b/projects/ngx-progressbar/src/lib/tests/ng-progress-ref.spec.ts index a2103ac..64685f6 100644 --- a/projects/ngx-progressbar/src/lib/tests/ng-progress-ref.spec.ts +++ b/projects/ngx-progressbar/src/lib/tests/ng-progress-ref.spec.ts @@ -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(); }); });