
    const itemNext = getByTestId('pagination-item-next')
    const itemReturn = getByTestId('pagination-item-return')
    const itemPage10 = getByTestId('pagination-item-10')

    fireEvent.click(itemNext)
    expect(handleOnChange).toHaveBeenLastCalledWith(2)
    fireEvent.click(itemPage10)
    expect(handleOnChange).toHaveBeenLastCalledWith(10)
    fireEvent.click(itemReturn)
    expect(handleOnChange).toHaveBeenLastCalledWith(9)
    expect(handleOnChange).toHaveBeenCalledTimes(3)
  })
