mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix integration document list datatable with new api
This commit is contained in:
@@ -36,7 +36,7 @@ export class DocumentListServiceMock extends DocumentListService {
|
||||
authService?: AlfrescoAuthenticationService,
|
||||
contentService?: AlfrescoContentService
|
||||
) {
|
||||
super(settings, authService, contentService);
|
||||
super(authService, contentService);
|
||||
}
|
||||
|
||||
getFolder(folder: string) {
|
||||
|
@@ -39,7 +39,7 @@ describe('DocumentActionsService', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
documentListService = new DocumentListServiceMock();
|
||||
contentService = new AlfrescoContentService(null, null);
|
||||
contentService = new AlfrescoContentService(null);
|
||||
service = new DocumentActionsService(documentListService, contentService);
|
||||
});
|
||||
|
||||
|
@@ -48,8 +48,8 @@ describe('DocumentListService', () => {
|
||||
|
||||
settingsService = injector.get(AlfrescoSettingsService);
|
||||
authService = injector.get(AlfrescoAuthenticationService);
|
||||
contentService = new AlfrescoContentService(settingsService, authService);
|
||||
service = new DocumentListService(settingsService, authService, contentService);
|
||||
contentService = new AlfrescoContentService(authService);
|
||||
service = new DocumentListService(authService, contentService);
|
||||
});
|
||||
|
||||
it('should require node to get thumbnail url', () => {
|
||||
@@ -57,7 +57,7 @@ describe('DocumentListService', () => {
|
||||
});
|
||||
|
||||
it('should require content service to get thumbnail url', () => {
|
||||
service = new DocumentListService(settingsService, authService, null);
|
||||
service = new DocumentListService(authService, null);
|
||||
let file = new FileNode();
|
||||
expect(service.getDocumentThumbnailUrl(file)).toBeNull();
|
||||
});
|
||||
|
@@ -20,7 +20,6 @@ import { Response } from '@angular/http';
|
||||
import { Observable } from 'rxjs/Rx';
|
||||
import { NodePaging, MinimalNodeEntity } from './../models/document-library.model';
|
||||
import {
|
||||
AlfrescoSettingsService,
|
||||
AlfrescoAuthenticationService,
|
||||
AlfrescoContentService
|
||||
} from 'ng2-alfresco-core';
|
||||
@@ -62,7 +61,6 @@ export class DocumentListService {
|
||||
};
|
||||
|
||||
constructor(
|
||||
private settings: AlfrescoSettingsService,
|
||||
private authService: AlfrescoAuthenticationService,
|
||||
private contentService: AlfrescoContentService
|
||||
) {
|
||||
|
Reference in New Issue
Block a user