Получение ошибки в ts при запуске тестовых спецификаций. Angular функция get (). Я попытался создать шпиона для этого имущества безуспешно.
Spe c:
const spyC = spyOnProperty(component, 'contractId').and.returnValue(new
FormGroup({}));
или
const spyC = spyOnProperty(component, 'contractId').and.callThrough();
expect(spyC).toHaveBeenCalled();
TS:
get contractId() {
return this.formService.queryParamSnapshot.get('contractId');
}
