import React from 'react';
import { describe, expect, it, vi } from 'vitest';
import { render, screen } from '@testing-library/react';
import PullToRefresh from '../PullToRefresh';

describe('PullToRefresh', () => {
  it('renders children and labels', () => {
    render(
      <PullToRefresh
        onRefresh={vi.fn()}
        pullLabel="Pull"
        releaseLabel="Release"
        refreshingLabel="Refreshing"
      >
        <div>Content</div>
      </PullToRefresh>
    );

    expect(screen.getByText('Content')).toBeInTheDocument();
    expect(screen.getByText('Pull')).toBeInTheDocument();
  });
});
