Skip to content

Commit

Permalink
initial fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RogueTea committed May 16, 2024
1 parent b55baa8 commit bd8b9e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/components/fileupload/fileupload.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { PlusIcon } from 'primeng/icons/plus';
import { TimesIcon } from 'primeng/icons/times';
import { UploadIcon } from 'primeng/icons/upload';

describe('FileUpload', () => {
fdescribe('FileUpload', () => {
let fileupload: FileUpload;
let fixture: ComponentFixture<FileUpload>;

Expand Down Expand Up @@ -42,7 +42,7 @@ describe('FileUpload', () => {
const fileuploadEl = fixture.debugElement.query(By.css('div'));
expect(fileuploadEl).toBeTruthy();
expect(fileuploadEl.nativeElement.className).toContain('p-fileupload-advanced');
expect(fileuploadEl.children.length).toEqual(2);
expect(fileuploadEl.children.length).toEqual(3);
});

it('should change style, styleClass, chooseLabel, uploadLabel, cancelLabel, showUploadButton and showCancelButton (advanced)', () => {
Expand Down Expand Up @@ -98,7 +98,7 @@ describe('FileUpload', () => {
expect(fileNameEl).toBeTruthy();
expect(removeButtonEl).toBeTruthy();
expect(fileNameEl.nativeElement.textContent).toEqual('primeng.txt');
expect(fileSizeEl.nativeElement.textContent).toEqual('179 B');
expect(fileSizeEl.nativeElement.textContent).toEqual('179.000 B');
expect(fileupload.hasFiles()).toEqual(true);
expect(uploadButton.nativeElement.disabled).toEqual(false);
expect(cancelButton.nativeElement.disabled).toEqual(false);
Expand Down

0 comments on commit bd8b9e3

Please sign in to comment.