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

Merge branch 'master' of git.ozg-sh.de:mgm/goofy

parents ce201e24 010f44aa
Branches
Tags
No related merge requests found
<div class="file" [matTooltip]="file.name"> <div class="file" [matTooltip]="file.name">
<mat-icon>file_present</mat-icon> <mat-icon>file_present</mat-icon>
<span class="name">{{ file.name }}</span> <span class="name">{{ file.name }}</span>
<span class="size" data-test-class="file-size" [innerHTML]="file.size | fileSize"></span> <span *ngIf="file.size" class="size" data-test-class="file-size" [innerHTML]="file.size | fileSize"></span>
</div> </div>
...@@ -45,11 +45,12 @@ describe('FileComponent', () => { ...@@ -45,11 +45,12 @@ describe('FileComponent', () => {
}) })
it('should be hidden if size = 0', () => { it('should be hidden if size = 0', () => {
component.file = { ...file, size: 0 } component.file = { ...file, size: 0 };
fixture.detectChanges();
const element = fixture.nativeElement.querySelector(fileSizeSelector); const element = fixture.nativeElement.querySelector(fileSizeSelector);
expect(element).toBeInstanceOf(HTMLElement); expect(element).not.toBeInstanceOf(HTMLElement);
}) })
}) })
}); });
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
[showWhileLoaded]="true" [showWhileLoaded]="true"
padding="0" padding="0"
text="Vorgang wird weitergeleitet"> text="Vorgang wird weitergeleitet">
<form class="form" [formGroup]="formService.form" (submit)="submit()"> <form class="form" [formGroup]="formService.form" (submit)="submit()">
<goofy-client-text-editor <goofy-client-text-editor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment