@NgModule({
providers: [
DatePipe,
JhiDataUtils,
JhiDateUtils,
JhiParseLinks,
{
provide: JhiLanguageService,
useClass: MockLanguageService
},
{
provide: JhiLanguageHelper,
useClass: MockLanguageHelper
},
{
provide: JhiEventManager,
useClass: Â MockEventManager
},
{
provide: NgbActiveModal,
useClass: MockActiveModal
},
{
provide: ActivatedRoute,
useValue: new MockActivatedRoute({id: 123})
},
{
provide: Router,
useClass: MockRouter
},
{
provide: Principal,
useClass: MockPrincipal
},
{
provide: AccountService,
useClass: MockAccountService
},
{
provide: LoginModalService,
useValue: null
},
{
provide: ElementRef,
useValue: null
},
{
provide: Renderer,
useValue: null
},
{
provide: JhiAlertService,
useValue: null
},
{
provide: NgbModal,
useValue: null
},
],
imports: [HttpClientTestingModule, FormsModule, ReactiveFormsModule, RouterModule, RouterTestingModule ],
schemas: [
CUSTOM_ELEMENTS_SCHEMA
]
})