import { render, screen } from '@testing-library/react';
import { Label } from './Label';

describe('<Label>', () => {
    it('should render text', () => {
        render(<Label>Label text</Label>);

        expect(screen.getByText('Label text')).toBeVisible();
    });

    it('should have class name', () => {
        render(<Label className="test-classname">Label text</Label>);

        expect(screen.getByText('Label text')).toHaveClass('test-classname');
    });
});
