From 543d928ec2999c0f82a7453bb10add7742eb2c57 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Tue, 12 Jul 2016 10:11:17 +0100 Subject: [PATCH] fix integration document list datatable with new api --- .../src/assets/document-list.service.mock.ts | 2 +- .../src/services/document-actions.service.spec.ts | 2 +- .../src/services/document-list.service.spec.ts | 6 +++--- .../src/services/document-list.service.ts | 2 -- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ng2-components/ng2-alfresco-documentlist/src/assets/document-list.service.mock.ts b/ng2-components/ng2-alfresco-documentlist/src/assets/document-list.service.mock.ts index 83ec9eeb63..a1d6a59078 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/assets/document-list.service.mock.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/assets/document-list.service.mock.ts @@ -36,7 +36,7 @@ export class DocumentListServiceMock extends DocumentListService { authService?: AlfrescoAuthenticationService, contentService?: AlfrescoContentService ) { - super(settings, authService, contentService); + super(authService, contentService); } getFolder(folder: string) { diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.spec.ts b/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.spec.ts index fab08fc90c..c226ad5c8f 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/services/document-actions.service.spec.ts @@ -39,7 +39,7 @@ describe('DocumentActionsService', () => { beforeEach(() => { documentListService = new DocumentListServiceMock(); - contentService = new AlfrescoContentService(null, null); + contentService = new AlfrescoContentService(null); service = new DocumentActionsService(documentListService, contentService); }); diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/document-list.service.spec.ts b/ng2-components/ng2-alfresco-documentlist/src/services/document-list.service.spec.ts index f7ba545899..21bb90e4c5 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/services/document-list.service.spec.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/services/document-list.service.spec.ts @@ -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(); }); diff --git a/ng2-components/ng2-alfresco-documentlist/src/services/document-list.service.ts b/ng2-components/ng2-alfresco-documentlist/src/services/document-list.service.ts index 88b8be3f1c..81012e679a 100644 --- a/ng2-components/ng2-alfresco-documentlist/src/services/document-list.service.ts +++ b/ng2-components/ng2-alfresco-documentlist/src/services/document-list.service.ts @@ -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 ) {