Я работал над попыткой покрытия линии для следующей функции в компоненте. Spe c .ts настроены и готовы, но тест я не могу понять.
const dialogRef = this.dialog.open(
StartTaskDialogComponent, {
data: {
id: i,
name
}
});
dialogRef.afterClosed().subscribe(result => {
console.log('The start task dialog was closed');
this.getTasks();
this.getDateTasks();
});
}```
The line coverage I need to cover is from dialogRef and forward. I have tried calling dialogRef with the component but it only accepts dialog.
Any assistance.