From 23eb95a91c456b949f555cb81b574fe2c7717575 Mon Sep 17 00:00:00 2001 From: mghilardelli Date: Wed, 16 Oct 2024 14:46:14 +0200 Subject: [PATCH] chore: fix webapp build --- webapp/src/app/app.component.spec.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/webapp/src/app/app.component.spec.ts b/webapp/src/app/app.component.spec.ts index adfd1635..23a24290 100644 --- a/webapp/src/app/app.component.spec.ts +++ b/webapp/src/app/app.component.spec.ts @@ -1,19 +1,16 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; import { AppComponent } from './app.component'; -import { AuthService, Tenant } from "./auth.service"; +import { AuthService } from "./auth.service"; import { MqService } from "./mq.service"; import { OidcSecurityService, UserDataResult } from "angular-auth-oidc-client"; import { signal } from "@angular/core"; -import { of } from "rxjs"; import { SbbIconTestingModule } from "@sbb-esta/angular/icon/testing"; import { NoopAnimationsModule } from "@angular/platform-browser/animations"; import { By } from "@angular/platform-browser"; import { SbbMenuItem } from "@sbb-esta/angular/menu"; import { RouterTestingModule } from "@angular/router/testing"; -const mockAuth: Partial = { - tenant: () => of({name: 'Organisation'} as Tenant) -}; +const mockAuth: Partial = {}; const mockOidc: Partial = { userData: signal({userData: {name: 'User'}} as UserDataResult), logoffLocalMultiple: () => Promise.resolve(true), @@ -51,10 +48,10 @@ describe('AppComponent', () => { ).toContain('DAS playground'); }); - it('should render organisation', () => { + it('should render name', () => { expect( fixture.nativeElement.querySelector('.sbb-usermenu-user-info-display-name').textContent, - ).toContain('Organisation'); + ).toContain('User'); }); it('should logout', () => {