fix tests

This commit is contained in:
Mario Romano
2016-06-17 20:17:54 +01:00
parent 13a53daac1
commit 9b6ed69095
4 changed files with 5 additions and 10 deletions

View File

@@ -25,7 +25,6 @@ describe('AlfrescoSearchAutocompleteComponent', () => {
let translation = jasmine.createSpyObj('AlfrescoTranslationService', [
'addTranslationFolder'
]);
let search = new AlfrescoSearchAutocompleteComponent(null, translation, null);
expect(search).toBeDefined();

View File

@@ -53,11 +53,9 @@ export class AlfrescoSearchAutocompleteComponent implements OnChanges {
@Output()
preview: EventEmitter<any> = new EventEmitter();
constructor(
private _alfrescoSearchService: AlfrescoSearchService,
constructor(private _alfrescoSearchService: AlfrescoSearchService,
private translate: AlfrescoTranslationService,
private _alfrescoThumbnailService: AlfrescoThumbnailService
) {
private _alfrescoThumbnailService: AlfrescoThumbnailService) {
translate.addTranslationFolder('node_modules/ng2-alfresco-search');
this.results = null;
}

View File

@@ -26,7 +26,7 @@ describe('AlfrescoSearchComponent', () => {
'addTranslationFolder'
]);
let search = new AlfrescoSearchComponent(null, translation, null);
let search = new AlfrescoSearchComponent(null, translation, null, null);
expect(search).toBeDefined();
expect(translation.addTranslationFolder).toHaveBeenCalledWith('node_modules/ng2-alfresco-search');
});

View File

@@ -54,9 +54,7 @@ export class AlfrescoThumbnailService {
'application/vnd.apple.numbers': 'ft_ic_spreadsheet.svg'
};
constructor(
private contentService: AlfrescoContentService
) {
constructor(private contentService: AlfrescoContentService) {
}
/**