79452484

Date: 2025-02-19 19:02:11
Score: 1.5
Natty:
Report link

For me, I found it was best to include the close function otherwise some errors could occur.

providers: [
    {
      provide: MatDialogRef,
      useValue: {
          close: (res: any) => {},
          componentInstance: (res: any) => {},
      },
    }
],
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Carl3300