mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
committed by
Denys Vuika
parent
473241f792
commit
9655e51943
@@ -25,10 +25,10 @@ import { AlfrescoThumbnailService } from './../services/alfresco-thumbnail.servi
|
||||
import { TranslationMock } from './../assets/translation.service.mock';
|
||||
import { AlfrescoSearchService } from '../services/alfresco-search.service';
|
||||
import {
|
||||
SettingsService,
|
||||
AlfrescoSettingsService,
|
||||
AlfrescoApiService,
|
||||
AuthService,
|
||||
AlfrescoTranslateService,
|
||||
AlfrescoAuthenticationService,
|
||||
AlfrescoTranslationService,
|
||||
CoreModule,
|
||||
StorageService,
|
||||
LogService
|
||||
@@ -107,7 +107,7 @@ describe('AlfrescoSearchComponent', () => {
|
||||
declarations: [ AlfrescoSearchComponent ], // declare the test component
|
||||
providers: [
|
||||
AlfrescoSearchService,
|
||||
{provide: AlfrescoTranslateService, useClass: TranslationMock},
|
||||
{provide: AlfrescoTranslationService, useClass: TranslationMock},
|
||||
AlfrescoThumbnailService
|
||||
]
|
||||
}).compileComponents().then(() => {
|
||||
@@ -133,8 +133,8 @@ describe('AlfrescoSearchComponent', () => {
|
||||
it('should have a null search term if no query param provided via RouteParams', () => {
|
||||
let injector = ReflectiveInjector.resolveAndCreate([
|
||||
AlfrescoSearchService,
|
||||
AuthService,
|
||||
SettingsService,
|
||||
AlfrescoAuthenticationService,
|
||||
AlfrescoSettingsService,
|
||||
AlfrescoApiService,
|
||||
StorageService,
|
||||
LogService,
|
||||
@@ -146,7 +146,7 @@ describe('AlfrescoSearchComponent', () => {
|
||||
});
|
||||
|
||||
it('should setup i18n folder', () => {
|
||||
let translationService = fixture.debugElement.injector.get(AlfrescoTranslateService);
|
||||
let translationService = fixture.debugElement.injector.get(AlfrescoTranslationService);
|
||||
spyOn(translationService, 'addTranslationFolder');
|
||||
fixture.detectChanges();
|
||||
expect(translationService.addTranslationFolder).toHaveBeenCalledWith('ng2-alfresco-search', 'node_modules/ng2-alfresco-search/src');
|
||||
|
Reference in New Issue
Block a user