Re-enable translation service tests

Refs #737
This commit is contained in:
Will Abson
2016-10-05 09:58:13 +01:00
parent 4beda8e55e
commit dda838be5e
4 changed files with 24 additions and 26 deletions

View File

@@ -116,14 +116,12 @@ describe('AlfrescoSearchAutocompleteComponent', () => {
});
}));
// it('should setup i18n folder', () => {
// let translation = jasmine.createSpyObj('AlfrescoTranslationService', [
// 'addTranslationFolder'
// ]);
// let search = new AlfrescoSearchAutocompleteComponent(null, translation, null);
// expect(search).toBeDefined();
//
// });
it('should setup i18n folder', () => {
let translationService = alfrescoSearchComponentFixture.debugElement.injector.get(AlfrescoTranslationService);
spyOn(translationService, 'addTranslationFolder');
alfrescoSearchComponentFixture.detectChanges();
expect(translationService.addTranslationFolder).toHaveBeenCalledWith('node_modules/ng2-alfresco-search/dist/src');
});
it('should display search results when a search term is provided', () => {
let searchTerm = { currentValue: 'customSearchTerm', previousValue: ''};