mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Remove tests for deprecated api
This commit is contained in:
@@ -114,22 +114,6 @@ describe('DocumentList', () => {
|
|||||||
expect(list.getContentUrl(node)).toBeNull();
|
expect(list.getContentUrl(node)).toBeNull();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should get thumbnail url', () => {
|
|
||||||
let url = 'URL';
|
|
||||||
spyOn(alfrescoServiceMock, 'getDocumentThumbnailUrl').and.returnValue(url);
|
|
||||||
|
|
||||||
let result = documentList.getDocumentThumbnailUrl(null);
|
|
||||||
|
|
||||||
expect(result).toBe(url);
|
|
||||||
expect(alfrescoServiceMock.getDocumentThumbnailUrl).toHaveBeenCalled();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should get no thumbnail url without service', () => {
|
|
||||||
let list = new DocumentList(null);
|
|
||||||
let node = new MinimalNodeEntity();
|
|
||||||
expect(list.getDocumentThumbnailUrl(node)).toBeNull();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should execute action with node', () => {
|
it('should execute action with node', () => {
|
||||||
let node = new MinimalNodeEntity();
|
let node = new MinimalNodeEntity();
|
||||||
let action = new ContentActionModel();
|
let action = new ContentActionModel();
|
||||||
|
Reference in New Issue
Block a user