From c1544e7449852aa9f8fce4532278853cdc79be25 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 2 Aug 2024 08:00:59 +0200 Subject: [PATCH] OZG-6314 Add test case --- .../vertical-binary-file-list.component.spec.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/alfa-client/libs/binary-file/src/lib/vertical-binary-file-list/vertical-binary-file-list.component.spec.ts b/alfa-client/libs/binary-file/src/lib/vertical-binary-file-list/vertical-binary-file-list.component.spec.ts index 1f6e635555..612c8f644c 100644 --- a/alfa-client/libs/binary-file/src/lib/vertical-binary-file-list/vertical-binary-file-list.component.spec.ts +++ b/alfa-client/libs/binary-file/src/lib/vertical-binary-file-list/vertical-binary-file-list.component.spec.ts @@ -110,8 +110,8 @@ describe('VerticalBinaryFileListComponent', () => { }); }); - describe('attchment header', () => { - it('should show header if there is uri or title', () => { + describe('attachment header', () => { + it('should show header if there is title', () => { component.title = 'Title'; fixture.detectChanges(); @@ -119,6 +119,14 @@ describe('VerticalBinaryFileListComponent', () => { existsAsHtmlElement(fixture, fileListHeader); }); + it('should show header if there is uri', () => { + component.archiveDownloadUri = faker.internet.url(); + + fixture.detectChanges(); + + existsAsHtmlElement(fixture, fileListHeader); + }); + it('should not show header if there is no uri or title', () => { component.title = ''; -- GitLab