import { render, screen } from '@testing-library/react';
import { describe, it, expect } from 'vitest';
import { AspectRatio } from './aspect-ratio';
import React from 'react';
describe('AspectRatio', () => {
it('renders correctly', () => {
render(
);
const image = screen.getByAltText('Landscape');
expect(image).toBeInTheDocument();
});
it('has correct data-slot attribute', () => {
const { container } = render(
Content
);
expect(container.querySelector('[data-slot="aspect-ratio"]')).toBeInTheDocument();
});
});