From 8f10d0e48086ae5bd3a90f0523aa0b532b05b9c0 Mon Sep 17 00:00:00 2001 From: Henry Taeschner Date: Mon, 25 Nov 2024 09:34:15 +0100 Subject: [PATCH] fix: code cleanup --- src/app/theme/theme-detail/theme-detail.component.spec.ts | 6 +++--- .../theme-intern/theme-intern.component.spec.ts | 5 +++-- .../theme-detail/theme-use/theme-use.component.spec.ts | 5 +++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/app/theme/theme-detail/theme-detail.component.spec.ts b/src/app/theme/theme-detail/theme-detail.component.spec.ts index 06c52f0..2d8ca8e 100644 --- a/src/app/theme/theme-detail/theme-detail.component.spec.ts +++ b/src/app/theme/theme-detail/theme-detail.component.spec.ts @@ -1,8 +1,8 @@ import { NO_ERRORS_SCHEMA } from '@angular/core' import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing' import { Location } from '@angular/common' -import { provideHttpClientTesting } from '@angular/common/http/testing' import { HttpErrorResponse, provideHttpClient } from '@angular/common/http' +import { provideHttpClientTesting } from '@angular/common/http/testing' import { ActivatedRoute, provideRouter, Router } from '@angular/router' import { TranslateModule, TranslateService } from '@ngx-translate/core' import { TranslateTestingModule } from 'ngx-translate-testing' @@ -12,10 +12,10 @@ import FileSaver from 'file-saver' import { ConfigurationService, PortalMessageService, UserService } from '@onecx/portal-integration-angular' import { RefType, Theme, ThemesAPIService } from 'src/app/shared/generated' -import { ThemeDetailComponent } from './theme-detail.component' - import { bffImageUrl, getCurrentDateTime } from 'src/app/shared/utils' +import { ThemeDetailComponent } from './theme-detail.component' + const theme: Theme = { id: 'theme-id', name: 'themeName', diff --git a/src/app/theme/theme-detail/theme-intern/theme-intern.component.spec.ts b/src/app/theme/theme-detail/theme-intern/theme-intern.component.spec.ts index 63a01ca..2b78d7c 100644 --- a/src/app/theme/theme-detail/theme-intern/theme-intern.component.spec.ts +++ b/src/app/theme/theme-detail/theme-intern/theme-intern.component.spec.ts @@ -1,8 +1,9 @@ +import { NO_ERRORS_SCHEMA } from '@angular/core' import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing' -import { ThemeInternComponent } from './theme-intern.component' import { TranslateModule, TranslateService } from '@ngx-translate/core' import { TranslateTestingModule } from 'ngx-translate-testing' -import { NO_ERRORS_SCHEMA } from '@angular/core' + +import { ThemeInternComponent } from './theme-intern.component' describe('ThemeInternComponent', () => { let component: ThemeInternComponent diff --git a/src/app/theme/theme-detail/theme-use/theme-use.component.spec.ts b/src/app/theme/theme-detail/theme-use/theme-use.component.spec.ts index b73d9de..bba8676 100644 --- a/src/app/theme/theme-detail/theme-use/theme-use.component.spec.ts +++ b/src/app/theme/theme-detail/theme-use/theme-use.component.spec.ts @@ -1,8 +1,9 @@ +import { NO_ERRORS_SCHEMA } from '@angular/core' import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing' -import { ThemeUseComponent } from './theme-use.component' import { TranslateModule, TranslateService } from '@ngx-translate/core' import { TranslateTestingModule } from 'ngx-translate-testing' -import { NO_ERRORS_SCHEMA } from '@angular/core' + +import { ThemeUseComponent } from './theme-use.component' describe('ThemeUseComponent', () => { let component: ThemeUseComponent