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