blob: b720650c65a878782ff5f68eee59b53e2fd92664 [file] [log] [blame]
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { TestingModule } from '../../../testing/testing.module';
import { JobDetailComponent } from './job-detail.component';
import { JobService } from '../shared/job.service';
describe('JobDetailComponent', () => {
let component: JobDetailComponent;
let fixture: ComponentFixture<JobDetailComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ TestingModule ],
providers: [
{
provide: JobService,
useValue: {
get: job => Observable.of()
}
}
],
declarations: [ JobDetailComponent ],
schemas: [
/* avoid importing modules */
NO_ERRORS_SCHEMA
]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(JobDetailComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});