How to spy on clipboard.copy method?
For
const clipboard = TestBed.inject(Clipboard);
spyOn(clipboard, 'copy').and.returnValue(true);
I get warning that
Argument of type '"copy"' is not assignable to parameter of type 'keyof Clipboard'.
I've also tried to add this to imports and declarations:

This is CopyToClipboardHost
class CopyToClipboardHost {
public content = '';
public attempts = 1;
public copied = jasmine.createSpy('copied spy');
}
