mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[AAE-10778] Fix unit test: remove display name it because the unknown display name value is no longer handled after refactoring
This commit is contained in:
@@ -440,18 +440,6 @@ describe('ViewerComponent', () => {
|
|||||||
expect(component.internalFileName).toEqual('blob file display name');
|
expect(component.internalFileName).toEqual('blob file display name');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should show uknownn name if displayName is NOT set and blobFile is set', (done) => {
|
|
||||||
component.fileName = null;
|
|
||||||
component.blobFile = new Blob(['This is my blob content'], {type: 'text/plain'});
|
|
||||||
fixture.detectChanges();
|
|
||||||
component.ngOnChanges();
|
|
||||||
|
|
||||||
fixture.whenStable().then(() => {
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(element.querySelector('#adf-viewer-display-name').textContent).toEqual('Unknown');
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user