Summary Table
Categories |
Total Count |
PII |
0 |
URL |
0 |
DNS |
0 |
EKL |
0 |
IP |
0 |
PORT |
0 |
VsID |
0 |
CF |
0 |
AI |
0 |
VPD |
0 |
PL |
0 |
Other |
0 |
File Content
import { Injectable, NO_ERRORS_SCHEMA } from '@angular/core';
import { TestBed, async } from '@angular/core/testing';
import { AppComponent } from './app.component';
import { ModalComponent } from '../modal/modal.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { reducers } from '../../reducers';
import { StoreModule, Store } from '@ngrx/store';
import { MockEhrService, MockSessionService } from '../../services/mocks';
import { EhrService } from '../../services/ehr.service';
import { SessionService } from '../../services/session.service';
import { Mock } from 'protractor/built/driverProviders';
describe('AppComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent,
ModalComponent
],
imports: [
NgbModule.forRoot(),
StoreModule.forRoot(reducers)
],
providers: [
Store,
{ provide: EhrService, useClass: MockEhrService },
{ provide: SessionService, useClass: MockSessionService }
],
schemas: [ NO_ERRORS_SCHEMA ]
}).compileComponents();
}));
it('should create the app', async(() => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
}));
});