mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix unit tests
This commit is contained in:
@@ -23,7 +23,8 @@ import {
|
||||
beforeEach,
|
||||
beforeEachProviders
|
||||
} from '@angular/core/testing';
|
||||
import { AlfrescoAuthenticationService, AlfrescoSettingsService } from 'ng2-alfresco-core';
|
||||
import { PLATFORM_PIPES } from '@angular/core';
|
||||
import { AlfrescoAuthenticationService, AlfrescoSettingsService, AlfrescoPipeTranslate } from 'ng2-alfresco-core';
|
||||
import { TestComponentBuilder } from '@angular/compiler/testing';
|
||||
import { AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||
import { AlfrescoLoginComponent } from './alfresco-login.component';
|
||||
@@ -37,6 +38,7 @@ describe('AlfrescoLogin', () => {
|
||||
|
||||
beforeEachProviders(() => {
|
||||
return [
|
||||
{ provide: PLATFORM_PIPES, useValue: AlfrescoPipeTranslate, multi: true },
|
||||
{ provide: AlfrescoAuthenticationService, useClass: AuthenticationMock },
|
||||
AlfrescoSettingsService,
|
||||
{ provide: AlfrescoTranslationService, useClass: TranslationMock }
|
||||
|
Reference in New Issue
Block a user