diff --git a/frontend/src/app/shared/custom/okr-tangram/okr-tangram.component.ts b/frontend/src/app/shared/custom/okr-tangram/okr-tangram.component.ts index 94f1683e8d..7f871e2454 100644 --- a/frontend/src/app/shared/custom/okr-tangram/okr-tangram.component.ts +++ b/frontend/src/app/shared/custom/okr-tangram/okr-tangram.component.ts @@ -9,10 +9,12 @@ import { BehaviorSubject, map, Observable, Subject, Subscription } from 'rxjs'; styleUrl: 'okr-tangram.component.scss', }) export class OkrTangramComponent { - private readonly defaultTrianglesSrc = 'assets/images/empty.svg'; + private readonly DEFAULT_TRIANGLE_SRC = 'assets/images/empty.svg'; trianglesSrc$ = new Observable(); constructor(private readonly configService: ConfigService) { - this.trianglesSrc$ = this.configService.config$.pipe(map((config) => config.triangles || this.defaultTrianglesSrc)); + this.trianglesSrc$ = this.configService.config$.pipe( + map((config) => config.triangles || this.DEFAULT_TRIANGLE_SRC), + ); } } diff --git a/frontend/src/app/team-management/team-management.component.spec.ts b/frontend/src/app/team-management/team-management.component.spec.ts index ffa1631fec..7a1fff46c1 100644 --- a/frontend/src/app/team-management/team-management.component.spec.ts +++ b/frontend/src/app/team-management/team-management.component.spec.ts @@ -23,6 +23,7 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { MatTableModule } from '@angular/material/table'; import { testUser, users } from '../shared/testData'; import { UserService } from '../services/user.service'; +import { ConfigService } from '../services/config.service'; describe('TeamManagementComponent', () => { let component: TeamManagementComponent; @@ -37,6 +38,10 @@ describe('TeamManagementComponent', () => { getUsers: () => of(users), }; + const configServiceMock = { + config$: of({}), + }; + beforeEach(async () => { await TestBed.configureTestingModule({ imports: [ @@ -69,6 +74,7 @@ describe('TeamManagementComponent', () => { providers: [ { provide: ActivatedRoute, useValue: activatedRouteMock }, { provide: UserService, useValue: userServiceMock }, + { provide: ConfigService, useValue: configServiceMock }, ], }).compileComponents(); });