This is the method I wanted to test but not able to understand how to mock scrollIntoView. Is there any documentation which can help me to understand jasmine testing. I am getting error saying ele.scrollIntoView is not a function.
scrollIntoViewMethod(): void {
const offsetTopDiv = '.highlight';
const ele = this.el.nativeElement.querySelector(`${offsetTopDiv}`);
ele.scrollIntoView({
behavior: 'smooth',
block: 'center',
inline: 'nearest',
});
}