{"size": 596, "ext": "js", "max_stars_repo_path": "src/Components/DropdownButton/CategoryDropdown.test.js", "max_stars_repo_name": "Academy-Skills-Matrix-Project/frontend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/Components/DropdownButton/CategoryDropdown.test.js", "max_issues_repo_name": "Academy-Skills-Matrix-Project/frontend", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/Components/DropdownButton/CategoryDropdown.test.js", "max_forks_repo_name": "Academy-Skills-Matrix-Project/frontend", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.8, "max_line_length": 67, "alphanum_fraction": 0.7046979866}
import React from 'react';
import { render, screen, fireEvent } from '@testing-library/react';
import CategoryDropdown from './CategoryDropdown';

// Dropdown renders properly
test('Dropdown renders properly', () => {
    render(<CategoryDropdown />);
    const dropdown = screen.getByTestId('category-dropdown');
    expect(dropdown).toBeInTheDocument();
});

// Dropdown can be clicked
test('Dropdown can be clicked', () => {
    render(<CategoryDropdown />);
    const dropdown = screen.getByTestId('category-dropdown');
    fireEvent.click(dropdown);
    expect(dropdown).toBeEnabled();
});

