mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
Remove tests for deprecated api
This commit is contained in:
parent
727e4222d9
commit
ba6aa5800f
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user