fix integration document list datatable with new api

This commit is contained in:
Eugenio Romano
2016-07-12 10:11:17 +01:00
parent 75629ca95e
commit 543d928ec2
4 changed files with 5 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ export class DocumentListServiceMock extends DocumentListService {
authService?: AlfrescoAuthenticationService, authService?: AlfrescoAuthenticationService,
contentService?: AlfrescoContentService contentService?: AlfrescoContentService
) { ) {
super(settings, authService, contentService); super(authService, contentService);
} }
getFolder(folder: string) { getFolder(folder: string) {

View File

@@ -39,7 +39,7 @@ describe('DocumentActionsService', () => {
beforeEach(() => { beforeEach(() => {
documentListService = new DocumentListServiceMock(); documentListService = new DocumentListServiceMock();
contentService = new AlfrescoContentService(null, null); contentService = new AlfrescoContentService(null);
service = new DocumentActionsService(documentListService, contentService); service = new DocumentActionsService(documentListService, contentService);
}); });

View File

@@ -48,8 +48,8 @@ describe('DocumentListService', () => {
settingsService = injector.get(AlfrescoSettingsService); settingsService = injector.get(AlfrescoSettingsService);
authService = injector.get(AlfrescoAuthenticationService); authService = injector.get(AlfrescoAuthenticationService);
contentService = new AlfrescoContentService(settingsService, authService); contentService = new AlfrescoContentService(authService);
service = new DocumentListService(settingsService, authService, contentService); service = new DocumentListService(authService, contentService);
}); });
it('should require node to get thumbnail url', () => { it('should require node to get thumbnail url', () => {
@@ -57,7 +57,7 @@ describe('DocumentListService', () => {
}); });
it('should require content service to get thumbnail url', () => { it('should require content service to get thumbnail url', () => {
service = new DocumentListService(settingsService, authService, null); service = new DocumentListService(authService, null);
let file = new FileNode(); let file = new FileNode();
expect(service.getDocumentThumbnailUrl(file)).toBeNull(); expect(service.getDocumentThumbnailUrl(file)).toBeNull();
}); });

View File

@@ -20,7 +20,6 @@ import { Response } from '@angular/http';
import { Observable } from 'rxjs/Rx'; import { Observable } from 'rxjs/Rx';
import { NodePaging, MinimalNodeEntity } from './../models/document-library.model'; import { NodePaging, MinimalNodeEntity } from './../models/document-library.model';
import { import {
AlfrescoSettingsService,
AlfrescoAuthenticationService, AlfrescoAuthenticationService,
AlfrescoContentService AlfrescoContentService
} from 'ng2-alfresco-core'; } from 'ng2-alfresco-core';
@@ -62,7 +61,6 @@ export class DocumentListService {
}; };
constructor( constructor(
private settings: AlfrescoSettingsService,
private authService: AlfrescoAuthenticationService, private authService: AlfrescoAuthenticationService,
private contentService: AlfrescoContentService private contentService: AlfrescoContentService
) { ) {