Skip to content
Snippets Groups Projects
Commit c1544e74 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6314 Add test case

parent ce7bcfb1
Branches
Tags
No related merge requests found
...@@ -110,8 +110,8 @@ describe('VerticalBinaryFileListComponent', () => { ...@@ -110,8 +110,8 @@ describe('VerticalBinaryFileListComponent', () => {
}); });
}); });
describe('attchment header', () => { describe('attachment header', () => {
it('should show header if there is uri or title', () => { it('should show header if there is title', () => {
component.title = 'Title'; component.title = 'Title';
fixture.detectChanges(); fixture.detectChanges();
...@@ -119,6 +119,14 @@ describe('VerticalBinaryFileListComponent', () => { ...@@ -119,6 +119,14 @@ describe('VerticalBinaryFileListComponent', () => {
existsAsHtmlElement(fixture, fileListHeader); 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', () => { it('should not show header if there is no uri or title', () => {
component.title = ''; component.title = '';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment