mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2138] Viewer enhancements (#2897)
* greatly improved rendition management * code cleanup * test fixes * better handling of media types * docs update * fix code style * fix tests after rebase
This commit is contained in:
committed by
Eugenio Romano
parent
8cd2190f37
commit
e5afe96a52
@@ -622,7 +622,7 @@ describe('ViewerComponent', () => {
|
||||
|
||||
it('should display the txt viewer if the file identified by mimetype is a txt when the filename has wrong extension', async(() => {
|
||||
component.urlFile = 'content.bin';
|
||||
component.mimeType = 'text/txt';
|
||||
component.mimeType = 'text/plain';
|
||||
component.urlFile = require('../assets/fake-test-file.txt');
|
||||
fixture.detectChanges();
|
||||
component.ngOnChanges(null);
|
||||
|
Reference in New Issue
Block a user