From 1e0d14d06f1b3f15a83c1ae318b02fab3219fb4f Mon Sep 17 00:00:00 2001 From: PHAM HOANG HUNG Date: Thu, 5 Sep 2024 16:57:11 +0700 Subject: [PATCH] MARP-1017 Implement Error page - update error page path --- .../src/app/core/interceptors/api.interceptor.spec.ts | 11 +++++------ .../src/app/core/interceptors/api.interceptor.ts | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/marketplace-ui/src/app/core/interceptors/api.interceptor.spec.ts b/marketplace-ui/src/app/core/interceptors/api.interceptor.spec.ts index f5704d58b..6870339a5 100644 --- a/marketplace-ui/src/app/core/interceptors/api.interceptor.spec.ts +++ b/marketplace-ui/src/app/core/interceptors/api.interceptor.spec.ts @@ -1,13 +1,12 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { HttpClient, HttpContext, HttpContextToken, HttpHeaders, HttpResponse } from '@angular/common/http'; -import { provideHttpClient, withInterceptors } from '@angular/common/http'; +import { HttpClient, HttpHeaders, provideHttpClient, withInterceptors } from '@angular/common/http'; import { HttpTestingController } from '@angular/common/http/testing'; -import { apiInterceptor } from './api.interceptor'; -import { ProductComponent } from '../../modules/product/product.component'; -import { TranslateModule } from '@ngx-translate/core'; +import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ActivatedRoute } from '@angular/router'; +import { TranslateModule } from '@ngx-translate/core'; import { of } from 'rxjs'; +import { ProductComponent } from '../../modules/product/product.component'; import { DESIGNER_COOKIE_VARIABLE } from '../../shared/constants/common.constant'; +import { apiInterceptor } from './api.interceptor'; describe('AuthInterceptor', () => { let productComponent: ProductComponent; diff --git a/marketplace-ui/src/app/core/interceptors/api.interceptor.ts b/marketplace-ui/src/app/core/interceptors/api.interceptor.ts index 777ec4b84..0a253a896 100644 --- a/marketplace-ui/src/app/core/interceptors/api.interceptor.ts +++ b/marketplace-ui/src/app/core/interceptors/api.interceptor.ts @@ -11,7 +11,7 @@ import { Router } from '@angular/router'; export const REQUEST_BY = 'X-Requested-By'; export const IVY = 'ivy'; -export const ERROR_PAGE_PATH = '/error'; +export const ERROR_PAGE_PATH = '/app/error'; export const CODE_404 = 404; export const CODE_500 = 500;