From 530c640b951e31c33c6208e2ddb35e0e1a81f44e Mon Sep 17 00:00:00 2001 From: markuczy Date: Mon, 11 Mar 2024 10:38:25 +0100 Subject: [PATCH] fix: PIA and angular-accelerator test fixes --- .../src/lib/components/diagram/diagram.component.spec.ts | 4 ++-- .../group-by-count-diagram.component.spec.ts | 4 ++-- .../interactive-data-view.component.spec.ts | 4 ++-- .../components/page-header/page-header.component.spec.ts | 8 ++++---- .../search-config/search-config.component.spec.ts | 4 ++-- .../search-header/search-header.component.spec.ts | 2 +- .../announcement-banner.component.spec.ts | 2 +- .../portal-footer/portal-footer.component.spec.ts | 2 +- .../portal-viewport/portal-viewport.component.spec.ts | 2 +- .../search-criteria/search-criteria.component.spec.ts | 2 +- .../lib/core/utils/create-translate-loader.utils.spec.ts | 2 +- 11 files changed, 18 insertions(+), 18 deletions(-) diff --git a/libs/angular-accelerator/src/lib/components/diagram/diagram.component.spec.ts b/libs/angular-accelerator/src/lib/components/diagram/diagram.component.spec.ts index c0b22080..47ed0c48 100644 --- a/libs/angular-accelerator/src/lib/components/diagram/diagram.component.spec.ts +++ b/libs/angular-accelerator/src/lib/components/diagram/diagram.component.spec.ts @@ -42,8 +42,8 @@ describe('DiagramComponent', () => { SelectButtonModule, FormsModule, TranslateTestingModule.withTranslations({ - en: require('./../../../../../assets/i18n/en.json'), - de: require('./../../../../../assets/i18n/de.json'), + en: require('./../../../../assets/i18n/en.json'), + de: require('./../../../../assets/i18n/de.json'), }), HttpClientTestingModule, ], diff --git a/libs/angular-accelerator/src/lib/components/group-by-count-diagram/group-by-count-diagram.component.spec.ts b/libs/angular-accelerator/src/lib/components/group-by-count-diagram/group-by-count-diagram.component.spec.ts index efe50d59..48469b1f 100644 --- a/libs/angular-accelerator/src/lib/components/group-by-count-diagram/group-by-count-diagram.component.spec.ts +++ b/libs/angular-accelerator/src/lib/components/group-by-count-diagram/group-by-count-diagram.component.spec.ts @@ -152,8 +152,8 @@ describe('GroupByCountDiagramComponent', () => { ChartModule, MessageModule, TranslateTestingModule.withTranslations({ - en: require('./../../../../../assets/i18n/en.json'), - de: require('./../../../../../assets/i18n/de.json'), + en: require('./../../../../assets/i18n/en.json'), + de: require('./../../../../assets/i18n/de.json'), }), HttpClientTestingModule, ], diff --git a/libs/angular-accelerator/src/lib/components/interactive-data-view/interactive-data-view.component.spec.ts b/libs/angular-accelerator/src/lib/components/interactive-data-view/interactive-data-view.component.spec.ts index cc1e7bc4..cd013d21 100644 --- a/libs/angular-accelerator/src/lib/components/interactive-data-view/interactive-data-view.component.spec.ts +++ b/libs/angular-accelerator/src/lib/components/interactive-data-view/interactive-data-view.component.spec.ts @@ -229,8 +229,8 @@ describe('InteractiveDataViewComponent', () => { RouterTestingModule, NoopAnimationsModule, TranslateTestingModule.withTranslations({ - en: require('./../../../../../assets/i18n/en.json'), - de: require('./../../../../../assets/i18n/de.json'), + en: require('./../../../../assets/i18n/en.json'), + de: require('./../../../../assets/i18n/de.json'), }), HttpClientModule, ], diff --git a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.spec.ts b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.spec.ts index 8a71f046..caca747c 100644 --- a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.spec.ts +++ b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.spec.ts @@ -6,8 +6,8 @@ import { TranslateTestingModule } from 'ngx-translate-testing' import { BreadcrumbModule } from 'primeng/breadcrumb' import { MenuModule } from 'primeng/menu' import { ButtonModule } from 'primeng/button' -import { AppStateService } from '../../services/app-state.service' -import { UserService } from '../../services/user.service' +import { AppStateService } from '@onecx/angular-integration-interface' +import { UserService } from '@onecx/angular-integration-interface' import { MockUserService } from '../../../../mocks/mock-user-service' import { PageHeaderHarness, TestbedHarnessEnvironment } from '../../../../testing' import { DynamicPipe } from '../../pipes/dynamic.pipe' @@ -77,8 +77,8 @@ describe('PageHeaderComponent', () => { RouterTestingModule, HttpClientTestingModule, TranslateTestingModule.withTranslations({ - en: require('./../../../../../assets/i18n/en.json'), - de: require('./../../../../../assets/i18n/de.json'), + en: require('./../../../../assets/i18n/en.json'), + de: require('./../../../../assets/i18n/de.json'), }), BreadcrumbModule, MenuModule, diff --git a/libs/angular-accelerator/src/lib/components/search-config/search-config.component.spec.ts b/libs/angular-accelerator/src/lib/components/search-config/search-config.component.spec.ts index 30f319ec..12c44702 100644 --- a/libs/angular-accelerator/src/lib/components/search-config/search-config.component.spec.ts +++ b/libs/angular-accelerator/src/lib/components/search-config/search-config.component.spec.ts @@ -59,8 +59,8 @@ describe('SearchConfigComponent', () => { NoopAnimationsModule, MessageModule, TranslateTestingModule.withTranslations({ - en: require('./../../../../../assets/i18n/en.json'), - de: require('./../../../../../assets/i18n/de.json'), + en: require('./../../../../assets/i18n/en.json'), + de: require('./../../../../assets/i18n/de.json'), }), HttpClientTestingModule, PrimeNgModule, diff --git a/libs/angular-accelerator/src/lib/components/search-header/search-header.component.spec.ts b/libs/angular-accelerator/src/lib/components/search-header/search-header.component.spec.ts index bcd14fc5..5545d219 100644 --- a/libs/angular-accelerator/src/lib/components/search-header/search-header.component.spec.ts +++ b/libs/angular-accelerator/src/lib/components/search-header/search-header.component.spec.ts @@ -6,7 +6,7 @@ import { RouterTestingModule } from '@angular/router/testing' import { HttpClientTestingModule } from '@angular/common/http/testing' import { ButtonModule } from 'primeng/button' import { BreadcrumbModule } from 'primeng/breadcrumb' -import { AppStateService } from '../../services/app-state.service' +import { AppStateService } from '@onecx/angular-integration-interface' import { AngularAcceleratorModule } from '../../angular-accelerator.module' describe('SearchHeaderComponent', () => { diff --git a/libs/portal-integration-angular/src/lib/core/components/announcement-banner/announcement-banner.component.spec.ts b/libs/portal-integration-angular/src/lib/core/components/announcement-banner/announcement-banner.component.spec.ts index f52bcd96..ad433d5d 100644 --- a/libs/portal-integration-angular/src/lib/core/components/announcement-banner/announcement-banner.component.spec.ts +++ b/libs/portal-integration-angular/src/lib/core/components/announcement-banner/announcement-banner.component.spec.ts @@ -3,7 +3,7 @@ import { ComponentFixture, TestBed, getTestBed } from '@angular/core/testing' import { AnnouncementBannerComponent } from './announcement-banner.component' import { ConfigurationService } from '../../../services/configuration.service' -import { AppStateService } from '@onecx/angular-accelerator' +import { AppStateService } from '@onecx/angular-integration-interface' import { HttpClientTestingModule } from '@angular/common/http/testing' import { AnnouncementsApiService } from '../../../services/announcements-api.service' import { Subject } from 'rxjs' diff --git a/libs/portal-integration-angular/src/lib/core/components/portal-footer/portal-footer.component.spec.ts b/libs/portal-integration-angular/src/lib/core/components/portal-footer/portal-footer.component.spec.ts index 99633dfe..f2d0f731 100644 --- a/libs/portal-integration-angular/src/lib/core/components/portal-footer/portal-footer.component.spec.ts +++ b/libs/portal-integration-angular/src/lib/core/components/portal-footer/portal-footer.component.spec.ts @@ -2,7 +2,7 @@ import { ComponentFixture, TestBed, getTestBed, waitForAsync } from '@angular/co import { HttpClientTestingModule } from '@angular/common/http/testing' import { PortalFooterComponent } from './portal-footer.component' import { ConfigurationService } from '../../../services/configuration.service' -import { AppStateService } from '@onecx/angular-accelerator' +import { AppStateService } from '@onecx/angular-integration-interface' describe('PortalFooterComponent', () => { const origAddEventListener = window.addEventListener diff --git a/libs/portal-integration-angular/src/lib/core/components/portal-viewport/portal-viewport.component.spec.ts b/libs/portal-integration-angular/src/lib/core/components/portal-viewport/portal-viewport.component.spec.ts index 58cbaede..9c33c819 100644 --- a/libs/portal-integration-angular/src/lib/core/components/portal-viewport/portal-viewport.component.spec.ts +++ b/libs/portal-integration-angular/src/lib/core/components/portal-viewport/portal-viewport.component.spec.ts @@ -20,7 +20,7 @@ import { IfBreakpointDirective } from '../../directives/if-breakpoint.directive' import { FormsModule, ReactiveFormsModule } from '@angular/forms' import { TooltipModule } from 'primeng/tooltip' import { TranslateTestingModule } from 'ngx-translate-testing' -import { AppStateService } from '@onecx/angular-accelerator' +import { AppStateService } from '@onecx/angular-integration-interface' import { AUTH_SERVICE } from '../../../api/injection-tokens' import { MockAuthService } from '../../../mock-auth/mock-auth.service' import { PortalCoreModule } from '../../portal-core.module' diff --git a/libs/portal-integration-angular/src/lib/core/components/search-criteria/search-criteria.component.spec.ts b/libs/portal-integration-angular/src/lib/core/components/search-criteria/search-criteria.component.spec.ts index fd6ee2a2..23ed1ef1 100644 --- a/libs/portal-integration-angular/src/lib/core/components/search-criteria/search-criteria.component.spec.ts +++ b/libs/portal-integration-angular/src/lib/core/components/search-criteria/search-criteria.component.spec.ts @@ -7,7 +7,7 @@ import { ConfigurationService } from '../../../services/configuration.service' import { HttpClientTestingModule } from '@angular/common/http/testing' import { MockAuthModule } from '../../../mock-auth/mock-auth.module' import { TranslateTestingModule } from 'ngx-translate-testing' -import { AppStateService } from '@onecx/angular-accelerator' +import { AppStateService } from '@onecx/angular-integration-interface' describe('SearchCriteriaComponent', () => { const origAddEventListener = window.addEventListener diff --git a/libs/portal-integration-angular/src/lib/core/utils/create-translate-loader.utils.spec.ts b/libs/portal-integration-angular/src/lib/core/utils/create-translate-loader.utils.spec.ts index 5fa853d3..1910da6c 100644 --- a/libs/portal-integration-angular/src/lib/core/utils/create-translate-loader.utils.spec.ts +++ b/libs/portal-integration-angular/src/lib/core/utils/create-translate-loader.utils.spec.ts @@ -1,5 +1,5 @@ import { HttpClient } from '@angular/common/http' -import { AppStateService } from '@onecx/angular-accelerator' +import { AppStateService } from '@onecx/angular-integration-interface' import { createTranslateLoader } from './create-translate-loader.utils' import { MockService } from 'ng-mocks' import { Observable, of } from 'rxjs'