title: Need angular jasmine test case for scrollIntoView function call
body: <p>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.</p>
  
  <pre><code>scrollIntoViewMethod(): void {
      const offsetTopDiv = '.highlight';
      const ele = this.el.nativeElement.querySelector(`${offsetTopDiv}`);
      ele.scrollIntoView({
        behavior: 'smooth',
        block: 'center',
        inline: 'nearest',
      });
    }
  </code></pre>