function renderMockedGridView(rowCount, columnCount) {
    const mockFunc = jest.fn();
    const tree = renderer.create(<GridView
      rowsCount={rowCount}
      itemsPerRow={columnCount}
      renderItem={mockFunc}
    />);
    const itemCount = rowCount * columnCount;
    expect(tree.toJSON()).toMatchSnapshot();

    expect(mockFunc).toHaveBeenCalledTimes(itemCount);
    for (let i = 0; i < itemCount; i += 1) {
      expect(mockFunc.mock.calls).toContainEqual([i]);
    }

    return tree;
  }
/**
   * @desc Common function to render grid view with specific size with mocked render item function.
   * @param {number} rowCount Count of rows in grid view.
   * @param {number} columnCount Count of columns in grid view.
   * @return {React.Component} Created GridView render tree.
   */
@desc Common function to render grid view with specific size with mocked render item function.
@param {number} rowCount Count of rows in grid view.
@param {number} columnCount Count of columns in grid view.
@return {React.Component} Created GridView render tree.
@desc Common function to render grid view with specific size with mocked render item function . @param { number } rowCount Count of rows in grid view . @param { number } columnCount Count of columns in grid view . @return { React . Component } Created GridView render tree .
function renderMockedGridView(rowCount, columnCount) {
    const mockFunc = jest.fn();
    const tree = renderer.create(<GridView
      rowsCount={rowCount}
      itemsPerRow={columnCount}
      renderItem={mockFunc}
    />);
    const itemCount = rowCount * columnCount;
    expect(tree.toJSON()).toMatchSnapshot();
    expect(mockFunc).toHaveBeenCalledTimes(itemCount);
    for (let i = 0; i < itemCount; i += 1) {
      expect(mockFunc.mock.calls).toContainEqual([i]);
    }
    return tree;
  }
function renderMockedGridView ( rowCount , columnCount ) { const mockFunc = jest . fn ( ) ; const tree = renderer . create ( < GridView rowsCount = { rowCount } itemsPerRow = { columnCount } renderItem = { mockFunc } / > ) ; const itemCount = rowCount * columnCount ; expect ( tree . toJSON ( ) ) . toMatchSnapshot ( ) ; expect ( mockFunc ) . toHaveBeenCalledTimes ( itemCount ) ; for ( let i = 0 ; i < itemCount ; i += 1 ) { expect ( mockFunc . mock . calls ) . toContainEqual ( [ i ] ) ; } return tree ; }
@desc Common function to render grid view with specific size with mocked render item function.
@desc Common function to render grid view with specific size with mocked render item function .