fix title viewer issues of priority between name display and real name

This commit is contained in:
Eugenio Romano
2018-08-09 15:01:20 +01:00
parent f69235df57
commit 35bcd80106
3 changed files with 9 additions and 8 deletions

View File

@@ -175,14 +175,14 @@ describe('ViewerComponent', () => {
tick();
expect(alfrescoApiService.nodesApi.getNodeInfo).toHaveBeenCalledWith('id1', {include: [ 'allowableOperations' ]});
expect(component.displayName).toBe('file1');
expect(component.fileTitle).toBe('file1');
component.fileNodeId = 'id2';
component.ngOnChanges({});
tick();
expect(alfrescoApiService.nodesApi.getNodeInfo).toHaveBeenCalledWith('id2', {include: [ 'allowableOperations' ]});
expect(component.displayName).toBe('file2');
expect(component.fileTitle).toBe('file2');
}));
describe('Viewer Example Component Rendering', () => {