]> git.proxmox.com Git - ceph.git/blob - ceph/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/iscsi-setting/iscsi-setting.component.spec.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / block / iscsi-setting / iscsi-setting.component.spec.ts
1 import { ComponentFixture, TestBed } from '@angular/core/testing';
2 import { FormControl, NgForm, ReactiveFormsModule } from '@angular/forms';
3
4 import { CdFormGroup } from '~/app/shared/forms/cd-form-group';
5 import { SharedModule } from '~/app/shared/shared.module';
6 import { configureTestBed } from '~/testing/unit-test-helper';
7 import { IscsiSettingComponent } from './iscsi-setting.component';
8
9 describe('IscsiSettingComponent', () => {
10 let component: IscsiSettingComponent;
11 let fixture: ComponentFixture<IscsiSettingComponent>;
12
13 configureTestBed({
14 imports: [SharedModule, ReactiveFormsModule],
15 declarations: [IscsiSettingComponent]
16 });
17
18 beforeEach(() => {
19 fixture = TestBed.createComponent(IscsiSettingComponent);
20 component = fixture.componentInstance;
21 component.settingsForm = new CdFormGroup({
22 max_data_area_mb: new FormControl()
23 });
24 component.formDir = new NgForm([], []);
25 component.setting = 'max_data_area_mb';
26 component.limits = {
27 type: 'int',
28 min: 1,
29 max: 2048
30 };
31 fixture.detectChanges();
32 });
33
34 it('should create', () => {
35 expect(component).toBeTruthy();
36 });
37 });