@angular/material/form-field#MatError TypeScript Examples
The following examples show how to use
@angular/material/form-field#MatError.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: configuration.component.spec.ts From HeartBeat with MIT License | 6 votes |
describe('ConfigurationComponent', () => {
let component: ConfigurationComponent;
let fixture: ComponentFixture<ConfigurationComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
ReactiveFormsModule,
RouterTestingModule,
MatDialogModule,
MatSelectModule,
MatListModule,
MatInputModule,
BrowserAnimationsModule,
],
declarations: [ConfigurationComponent, MatError],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ConfigurationComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
Example #2
Source File: cycle-item.component.spec.ts From HeartBeat with MIT License | 6 votes |
describe('CycleColumnComponent', () => {
let component: CycleItemComponent;
let fixture: ComponentFixture<CycleItemComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [MatSelectModule, BrowserAnimationsModule],
declarations: [CycleItemComponent, MatError],
}).compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(CycleItemComponent);
component = fixture.componentInstance;
component.metricsForm = new FormGroup({
cycleTime: new FormGroup({
jiraColumns: new FormArray([
new FormGroup({
key: new FormArray([new FormControl('')]),
}),
]),
}),
});
component.groupName = '0';
component.columnItemKey = 'key';
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});