diff --git a/karma.conf.js b/karma.conf.js index dbc0d46..be55f4e 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,6 +1,5 @@ // Karma configuration file, see link for more information // https://karma-runner.github.io/6.4/config/configuration-file.html -// process.env.CHROME_BIN = require('puppeteer').executablePath() module.exports = function (config) { config.set({ diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 1dd44d6..66647c3 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -1,3 +1,4 @@ +import { NO_ERRORS_SCHEMA } from '@angular/core' import { TestBed } from '@angular/core/testing' import { AppComponent } from './app.component' @@ -5,7 +6,8 @@ import { AppComponent } from './app.component' describe('AppComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [AppComponent] + declarations: [AppComponent], + schemas: [NO_ERRORS_SCHEMA] }).compileComponents() }) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index d32dc84..9b3ef04 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,4 +1,4 @@ -import { APP_INITIALIZER, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, NgModule } from '@angular/core' +import { APP_INITIALIZER, NgModule } from '@angular/core' import { CommonModule } from '@angular/common' import { HttpClient, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http' import { RouterModule, Routes } from '@angular/router' @@ -6,18 +6,13 @@ import { BrowserModule } from '@angular/platform-browser' import { BrowserAnimationsModule } from '@angular/platform-browser/animations' import { TranslateLoader, TranslateModule, TranslateService } from '@ngx-translate/core' -import { - APP_CONFIG, - AppStateService, - createTranslateLoader, - translateServiceInitializer, - PortalCoreModule, - UserService -} from '@onecx/portal-integration-angular' import { KeycloakAuthModule } from '@onecx/keycloak-auth' +import { createTranslateLoader } from '@onecx/angular-accelerator' +import { APP_CONFIG, AppStateService, UserService } from '@onecx/angular-integration-interface' +import { translateServiceInitializer, PortalCoreModule } from '@onecx/portal-integration-angular' -import { AppComponent } from './app.component' import { environment } from 'src/environments/environment' +import { AppComponent } from './app.component' const routes: Routes = [ { @@ -31,13 +26,13 @@ const routes: Routes = [ imports: [ CommonModule, BrowserModule, - KeycloakAuthModule, BrowserAnimationsModule, + KeycloakAuthModule, + PortalCoreModule.forRoot('onecx-permission-ui'), RouterModule.forRoot(routes, { initialNavigation: 'enabledBlocking', enableTracing: true }), - PortalCoreModule.forRoot('onecx-permission-ui'), TranslateModule.forRoot({ isolate: true, loader: { @@ -56,8 +51,7 @@ const routes: Routes = [ deps: [UserService, TranslateService] }, provideHttpClient(withInterceptorsFromDi()) - ], - schemas: [NO_ERRORS_SCHEMA, CUSTOM_ELEMENTS_SCHEMA] + ] }) export class AppModule { constructor() { diff --git a/src/app/permission/permission.module.spec.ts b/src/app/permission/permission.module.spec.ts deleted file mode 100644 index e69de29..0000000