BRIDGE_Modul-S_prod / src /components /CsvExportButton.test.tsx
sitcod3's picture
build: add Docker support and deployment pipeline
9e7f815
Raw History Blame Contribute Delete
394 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();
});
});