Download src/components/CsvExportButton.test.tsx from sitcod3/modul-s: direct link, hf CLI and curl.
- Browser
- Download file 405 Bytes
-
https://huggingface.co/spaces/sitcod3/modul-s/resolve/main/src/components/CsvExportButton.test.tsx
- Command line
-
hf download hf://spaces/sitcod3/modul-s/src/components/CsvExportButton.test.tsx
-
curl -L -o CsvExportButton.test.tsx https://huggingface.co/spaces/sitcod3/modul-s/resolve/main/src/components/CsvExportButton.test.tsx
405 Bytes
| import { render, screen } from '@testing-library/react'; | |
| import { describe, it, expect } from 'vitest'; | |
| import CsvExportButton from './CsvExportButton'; | |
| describe('CsvExportButton', () => { | |
| it('renders correctly', () => { | |
| const data = [{ name: "Alex" }]; | |
| render(<CsvExportButton data={data} filename="test.csv" />); | |
| expect(screen.getByText('Export CSV')).toBeDefined(); | |
| }); | |
| }); | |