import React from 'react';
import { render, screen } from '@testing-library/react';
import Navbar from '../../src/components/layout/Navbar';

describe('Navbar', () => {
  it('muestra enlaces ROMs y Games', () => {
    render(<Navbar />);
    expect(screen.getByText('ROMs')).toBeInTheDocument();
    expect(screen.getByText('Games')).toBeInTheDocument();
  });
});
import { render, screen } from '@testing-library/react';
import Navbar from '../../src/components/layout/Navbar';

describe('Navbar', () => {
  it('renders ROMs and Games links', () => {
    render(<Navbar />);
    expect(screen.getByText(/ROMs/)).toBeInTheDocument();
    expect(screen.getByText(/Games/)).toBeInTheDocument();
  });
});
