From dbd00efec968b6c484ebcff47bc653e39728fcbd Mon Sep 17 00:00:00 2001 From: Brian Pilati Date: Fri, 19 Sep 2025 15:33:36 -0500 Subject: [PATCH 1/2] chore(fix test): fixed a test --- src/app/shared/stores/banners/banners.state.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/shared/stores/banners/banners.state.spec.ts b/src/app/shared/stores/banners/banners.state.spec.ts index 55e8c2775..bd6f9d6c7 100644 --- a/src/app/shared/stores/banners/banners.state.spec.ts +++ b/src/app/shared/stores/banners/banners.state.spec.ts @@ -37,7 +37,7 @@ describe('State: Banners', () => { const loading = store.selectSignal(BannersSelector.getCurrentBannerIsLoading); expect(loading()).toBeTruthy(); - const request = httpMock.expectOne('http://localhost:8000/_/banners/current'); + const request = httpMock.expectOne('http://localhost:8000/_/banners/current/'); expect(request.request.method).toBe('GET'); request.flush(getScheduledBannerData()); @@ -79,13 +79,13 @@ describe('State: Banners', () => { const loading = store.selectSignal(BannersSelector.getCurrentBannerIsLoading); expect(loading()).toBeTruthy(); - const request = httpMock.expectOne('http://localhost:8000/_/banners/current'); + const request = httpMock.expectOne('http://localhost:8000/_/banners/current/'); expect(request.request.method).toBe('GET'); request.flush({ message: 'Internal Server Error' }, { status: 500, statusText: 'Server Error' }); expect(result).toEqual({ data: null, - error: 'Http failure response for http://localhost:8000/_/banners/current: 500 Server Error', + error: 'Http failure response for http://localhost:8000/_/banners/current/: 500 Server Error', isLoading: false, isSubmitting: false, }); From f0ed14059b847e5c0a215f61a79c4d50d546a15e Mon Sep 17 00:00:00 2001 From: Brian Pilati Date: Fri, 19 Sep 2025 15:38:17 -0500 Subject: [PATCH 2/2] chore(fixed-test): fixed another test --- src/app/shared/services/banners.service.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/services/banners.service.spec.ts b/src/app/shared/services/banners.service.spec.ts index 72fb2bfb4..5787eae31 100644 --- a/src/app/shared/services/banners.service.spec.ts +++ b/src/app/shared/services/banners.service.spec.ts @@ -28,7 +28,7 @@ describe('Service: Banners', () => { }, }); - const request = httpMock.expectOne('http://localhost:8000/_/banners/current'); + const request = httpMock.expectOne('http://localhost:8000/_/banners/current/'); expect(request.request.method).toBe('GET'); request.flush(getScheduledBannerData());