使用FormGroup Angular4,我尝试使用formControl编写删除/添加字段的测试用例。在我的组件中使用removeControl() of FormGroup获取TypeError:无法读取测试用例中未定义的的属性“removeControl”
if (authType.value ==restFormGroup.addControl('username
我正在尝试根据控制器变量对设置表单有效性的指令进行单元测试。我的指令代码:angular.module('myModule',[]) return {,我试图使用以下代码隔离控制器ctrl:describe('directive module unit test implementation', function() {
va
我的代码 public filteredSearch: ReplaySubject<any[]> = new ReplaySubject(1);
this.filteredSearch[id].next(filter(somedata)); 它抛出错误,无法读取属性'next‘的未定义,我这里缺少什么?在angular 7上测试