mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix tests
This commit is contained in:
@@ -25,7 +25,6 @@ describe('AlfrescoSearchAutocompleteComponent', () => {
|
||||
let translation = jasmine.createSpyObj('AlfrescoTranslationService', [
|
||||
'addTranslationFolder'
|
||||
]);
|
||||
|
||||
let search = new AlfrescoSearchAutocompleteComponent(null, translation, null);
|
||||
expect(search).toBeDefined();
|
||||
|
||||
|
@@ -53,11 +53,9 @@ export class AlfrescoSearchAutocompleteComponent implements OnChanges {
|
||||
@Output()
|
||||
preview: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
constructor(
|
||||
private _alfrescoSearchService: AlfrescoSearchService,
|
||||
private translate: AlfrescoTranslationService,
|
||||
private _alfrescoThumbnailService: AlfrescoThumbnailService
|
||||
) {
|
||||
constructor(private _alfrescoSearchService: AlfrescoSearchService,
|
||||
private translate: AlfrescoTranslationService,
|
||||
private _alfrescoThumbnailService: AlfrescoThumbnailService) {
|
||||
translate.addTranslationFolder('node_modules/ng2-alfresco-search');
|
||||
this.results = null;
|
||||
}
|
||||
|
@@ -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');
|
||||
});
|
||||
|
@@ -54,9 +54,7 @@ export class AlfrescoThumbnailService {
|
||||
'application/vnd.apple.numbers': 'ft_ic_spreadsheet.svg'
|
||||
};
|
||||
|
||||
constructor(
|
||||
private contentService: AlfrescoContentService
|
||||
) {
|
||||
constructor(private contentService: AlfrescoContentService) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user