diff --git a/modules/ui/src/app/mocks/certificate.mock.ts b/modules/ui/src/app/mocks/certificate.mock.ts index 65d0be109..278dc8ec0 100644 --- a/modules/ui/src/app/mocks/certificate.mock.ts +++ b/modules/ui/src/app/mocks/certificate.mock.ts @@ -22,12 +22,22 @@ export const certificate = { } as Certificate; export const certificate_uploading = { - name: 'test', + name: 'name.cert', uploading: true, } as Certificate; export const certificate2 = { - name: 'sensor.bms.google.com', + name: 'sensor.bms.google.com.cert', organisation: 'Google, Inc.', expires: '2024-09-01T09:00:12Z', } as Certificate; + +export const INVALID_FILE = { + name: 'some very long strange name with symbols!?.jpg', + size: 7000, +} as File; + +export const FILE = { + name: 'name.cert', + size: 3000, +} as File; diff --git a/modules/ui/src/app/pages/certificates/certificate-item/certificate-item.component.html b/modules/ui/src/app/pages/certificates/certificate-item/certificate-item.component.html index 28bc1768a..eeb4fb6c8 100644 --- a/modules/ui/src/app/pages/certificates/certificate-item/certificate-item.component.html +++ b/modules/ui/src/app/pages/certificates/certificate-item/certificate-item.component.html @@ -14,7 +14,6 @@ *ngIf="certificate.uploading" mode="indeterminate"> -