Angular 4.1.0コンポーネントをテストしようとしています-
export class CellComponent implements OnInit {
  lines: Observable<Array<ILine>>;
  @Input() dep: string;
  @Input() embedded: boolean;
  @Input() dashboard: boolean;
  constructor(
    public dataService: CellService,
    private route: ActivatedRoute,
    private router: Router, private store: Store<AppStore>) {
  }
}
ただし、単純な「should create」テストでは、この不可解なエラーがスローされます...
NetworkError:「XMLHttpRequest」で「send」を実行できませんでした:「ng:///DynamicTestModule/module.ngfactory.js」をロードできませんでした。
だから私はこの質問を見つけました、それは問題がコンポーネントが@Input)_設定されていないparamsを持っていることを示唆しています、しかし私が私のように私のテストを変更した場合:
  it('should create', inject([CellComponent], (cmp: CellComponent) => {
    cmp.dep = '';
    cmp.embedded = false;
    cmp.dashboard = false;
    expect(cmp).toBeTruthy();
  }));
その後、同じ問題が引き続き発生します。同様に@Input()、コンポーネントからアノテーションを削除しても、違いはありません。これらのテストに合格するにはどうすればよいですか?