Jasmine AG Grid Test case failed

Am trying to write a test for ag grid export method. Here is the component changes

export class GridComponent extendsimplements OnInit {

  gridApi: any;

  onGridDataExport(): void {

grid component spec file

fdescribe('when onGridDataExport method call', () => {
    it('should call gridApi', () => {
      const result = spyOn(component.gridApi, 'exportDataAsCsv');


when i run the test cases it show the below error enter image description here

How can i resolve this issue?

expecting a valid solution.

Thanks in advance

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum