37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
|
|
import { TaskFormComponent } from './task-form.component';
|
|
import { HttpClientModule } from '@angular/common/http';
|
|
import { BackendService } from '../../services/backend.service';
|
|
import { NgbActiveModal, NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
|
|
|
describe('TaskFormComponent', () => {
|
|
let component: TaskFormComponent;
|
|
let fixture: ComponentFixture<TaskFormComponent>;
|
|
|
|
beforeEach(async(() => {
|
|
TestBed.configureTestingModule({
|
|
imports: [
|
|
HttpClientModule,
|
|
NgbModule,
|
|
],
|
|
declarations: [TaskFormComponent],
|
|
providers: [
|
|
BackendService,
|
|
NgbActiveModal,
|
|
]
|
|
})
|
|
.compileComponents();
|
|
}));
|
|
|
|
beforeEach(() => {
|
|
fixture = TestBed.createComponent(TaskFormComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create the component', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|