How to write a test case for Angular Material modal

57 views Asked by At

component.ts file

import { MatDialog } from '@angular/material/dialog';
constructor(private _matDialog: MatDialog) { }
 onOpenModal(template) {
    this._matDialog.open(template);
  }

How to write a test case for the above method, using Angular's ng test?

0

There are 0 answers