You are calling component.ngOnInit() before setting the mocked value hence it will not be set. Please be aware that the first fixture.
確定! 回上一頁