Skip to content

Commit

Permalink
fix: use absolute paths in all files
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Badura committed Feb 21, 2024
1 parent c3c8b34 commit 9e51af6
Show file tree
Hide file tree
Showing 27 changed files with 301 additions and 289 deletions.
3 changes: 2 additions & 1 deletion src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { NO_ERRORS_SCHEMA } from '@angular/core'
import { TestBed } from '@angular/core/testing'
import { AppComponent } from './app.component'
import { RouterTestingModule } from '@angular/router/testing'

import { AppComponent } from 'src/app/app.component'

describe('AppComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/menu-state.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core'
import { MenuItem } from '../shared/generated'
import { MenuItem } from 'src/app/shared/generated'

export interface MenuState {
selectedPortal?: string
Expand Down
2 changes: 1 addition & 1 deletion src/app/services/menu-tree.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core'
import { TreeNode } from 'primeng/api'
import { MenuItem } from '../shared/generated'
import { MenuItem } from 'src/app/shared/generated'

export interface NewPosition {
id: string | undefined
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, Input, OnChanges, SimpleChanges } from '@angular/core'
import { environment } from '../../../environments/environment'
import { environment } from 'src/environments/environment'

@Component({
selector: 'app-image-container',
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/label.resolver.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Observable, of } from 'rxjs'
import { LabelResolver } from './label.resolver'
import { LabelResolver } from 'src/app/shared/label.resolver'

let labelResolver: LabelResolver

Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {

import { Configuration } from 'src/app/shared/generated'
import { environment } from 'src/environments/environment'
import { LabelResolver } from './label.resolver'
import { LabelResolver } from 'src/app/shared/label.resolver'

import { ImageContainerComponent } from './image-container/image-container.component'
import { ThemeColorBoxComponent } from './theme-color-box/theme-color-box.component'
Expand Down
68 changes: 34 additions & 34 deletions src/app/shared/theme-color-box/theme-color-box.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
// import { NO_ERRORS_SCHEMA } from '@angular/core'
// import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'
// // import { HttpClient } from '@angular/common/http'
// import { HttpClientTestingModule } from '@angular/common/http/testing'
// // import { TranslateLoader, TranslateModule } from '@ngx-translate/core'
import { NO_ERRORS_SCHEMA } from '@angular/core'
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'
// import { HttpClient } from '@angular/common/http'
import { HttpClientTestingModule } from '@angular/common/http/testing'
// import { TranslateLoader, TranslateModule } from '@ngx-translate/core'

// import { ThemeColorBoxComponent } from './theme-color-box.component'
import { ThemeColorBoxComponent } from './theme-color-box.component'

// describe('ThemeColorBoxComponent', () => {
// let component: ThemeColorBoxComponent
// let fixture: ComponentFixture<ThemeColorBoxComponent>
describe('ThemeColorBoxComponent', () => {
let component: ThemeColorBoxComponent
let fixture: ComponentFixture<ThemeColorBoxComponent>

// beforeEach(waitForAsync(() => {
// TestBed.configureTestingModule({
// declarations: [ThemeColorBoxComponent],
// imports: [
// HttpClientTestingModule
// /* TranslateModule.forRoot({
// loader: {
// provide: TranslateLoader,
// useFactory: HttpLoaderFactory,
// deps: [HttpClient]
// }
// }) */
// ],
// schemas: [NO_ERRORS_SCHEMA]
// }).compileComponents()
// }))
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
declarations: [ThemeColorBoxComponent],
imports: [
HttpClientTestingModule
/* TranslateModule.forRoot({
loader: {
provide: TranslateLoader,
useFactory: HttpLoaderFactory,
deps: [HttpClient]
}
}) */
],
schemas: [NO_ERRORS_SCHEMA]
}).compileComponents()
}))

// beforeEach(() => {
// fixture = TestBed.createComponent(ThemeColorBoxComponent)
// component = fixture.componentInstance
// fixture.detectChanges()
// })
beforeEach(() => {
fixture = TestBed.createComponent(ThemeColorBoxComponent)
component = fixture.componentInstance
fixture.detectChanges()
})

// it('should create', () => {
// expect(component).toBeTruthy()
// })
// })
it('should create', () => {
expect(component).toBeTruthy()
})
})
3 changes: 2 additions & 1 deletion src/app/shared/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// import { MicrofrontendDTO } from '@onecx/portal-integration-angular'
import { AbstractControl, FormArray, FormGroup } from '@angular/forms'
import { SelectItem } from 'primeng/api'
import { Workspace /* , ThemeDTO */ } from './generated'

import { Workspace /* , ThemeDTO */ } from 'src/app/shared/generated'

export function limitText(text: string, limit: number): string {
if (text) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { FileUpload } from 'primeng/fileupload'

import { PortalMessageService, UserService } from '@onecx/portal-integration-angular'

import { LogoState } from './logo-state'
import { LogoState } from 'src/app/workspace/workspace-create/logo-state'
// import { setFetchUrls , sortThemeByName } from '../../shared/utils'
import {
/* ImageV1APIService, */
Expand Down
Loading

0 comments on commit 9e51af6

Please sign in to comment.