Skip to content

Commit

Permalink
fix: PIA and angular-accelerator test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
markuczy committed Mar 11, 2024
1 parent 73da64f commit 530c640
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 530c640

Please sign in to comment.