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