Looking for help on testing a method in my component.ts
. Here's the method:
print(i) {
(document.getElementById("iframe0) as any).contentWindow.print();
}
I'm unsure how to mock an HTML document with an iframe in order to test this method.
If anyone has suggestions on how to mock an HTML document and create an instance to verify if the method is printing, I would appreciate it.