import React from 'react';
import { render, getByText } from '@testing-library/react';
import { Text } from '../';

describe('<Text/>', () => {
  it('Renders without crashing', () => {
    const { container } = render(<Text>This is a test text</Text>);
    expect(container).toBeDefined();
  });

  it('Renders the text correctly', () => {
    const { getByText } = render(<Text>This is a test text</Text>);
    expect(getByText('This is a test text')).toBeDefined();
  });
});
