[ACS-5761] Demo Shell Cleanup (part 2) (#8807)

cleanup demo shell
This commit is contained in:
Denys Vuika
2023-08-10 22:18:21 +01:00
committed by GitHub
parent ca60b392d4
commit f201efd56a
203 changed files with 1005 additions and 10703 deletions

View File

@@ -17,23 +17,23 @@
import { TestBed } from '@angular/core/testing';
import { ThumbnailService } from './thumbnail.service';
import { CoreTestingModule } from '../../testing/core.testing.module';
import { TranslateModule } from '@ngx-translate/core';
describe('ThumbnailService', () => {
let service: ThumbnailService;
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
TranslateModule.forRoot(),
CoreTestingModule
]
});
service = TestBed.inject(ThumbnailService);
});
it('should return the correct icon for a PDF document', () => {
expect(service.getMimeTypeIcon('application/pdf')).toContain('ft_ic_pdf');
});
it('should return the correct icon for a DOCX document', () => {
expect(service.getMimeTypeIcon('application/msword')).toContain('ft_ic_ms_word');
});
it('should return the correct icon for a plain text file', () => {
expect(service.getMimeTypeIcon('text/plain')).toContain('ft_ic_document');
});