]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/hosts/host-form/host-form.component.spec.ts
f47f72d1c209bf8a099f96c50597939b2c7399be
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cluster / hosts / host-form / host-form.component.spec.ts
1 import { HttpClientTestingModule } from '@angular/common/http/testing';
2 import { ComponentFixture, TestBed } from '@angular/core/testing';
3 import { ReactiveFormsModule } from '@angular/forms';
4 import { RouterTestingModule } from '@angular/router/testing';
5
6 import { ToastrModule } from 'ngx-toastr';
7
8 import { LoadingPanelComponent } from '~/app/shared/components/loading-panel/loading-panel.component';
9 import { SharedModule } from '~/app/shared/shared.module';
10 import { configureTestBed } from '~/testing/unit-test-helper';
11 import { HostFormComponent } from './host-form.component';
12
13 describe('HostFormComponent', () => {
14 let component: HostFormComponent;
15 let fixture: ComponentFixture<HostFormComponent>;
16
17 configureTestBed(
18 {
19 imports: [
20 SharedModule,
21 HttpClientTestingModule,
22 RouterTestingModule,
23 ReactiveFormsModule,
24 ToastrModule.forRoot()
25 ],
26 declarations: [HostFormComponent]
27 },
28 [LoadingPanelComponent]
29 );
30
31 beforeEach(() => {
32 fixture = TestBed.createComponent(HostFormComponent);
33 component = fixture.componentInstance;
34 fixture.detectChanges();
35 });
36
37 it('should create', () => {
38 expect(component).toBeTruthy();
39 });
40 });