From 0309a0fae174c7cd3588ed105d87f435b9657582 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 5 Dec 2023 09:00:06 -0800 Subject: [PATCH] Fix: invalid height attr on logo svg --- src-ui/src/app/components/common/logo/logo.component.html | 2 +- .../src/app/components/common/logo/logo.component.spec.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src-ui/src/app/components/common/logo/logo.component.html b/src-ui/src/app/components/common/logo/logo.component.html index 6c688902e..af08e41fd 100644 --- a/src-ui/src/app/components/common/logo/logo.component.html +++ b/src-ui/src/app/components/common/logo/logo.component.html @@ -1,4 +1,4 @@ - + diff --git a/src-ui/src/app/components/common/logo/logo.component.spec.ts b/src-ui/src/app/components/common/logo/logo.component.spec.ts index 118e0e40e..921ea3765 100644 --- a/src-ui/src/app/components/common/logo/logo.component.spec.ts +++ b/src-ui/src/app/components/common/logo/logo.component.spec.ts @@ -24,13 +24,13 @@ describe('LogoComponent', () => { }) it('should support setting height', () => { - expect(fixture.debugElement.query(By.css('svg')).attributes.height).toEqual( - '6em' + expect(fixture.debugElement.query(By.css('svg')).attributes.style).toEqual( + 'height:6em' ) component.height = '10em' fixture.detectChanges() - expect(fixture.debugElement.query(By.css('svg')).attributes.height).toEqual( - '10em' + expect(fixture.debugElement.query(By.css('svg')).attributes.style).toEqual( + 'height:10em' ) }) })