18 lines
433 B
JavaScript
18 lines
433 B
JavaScript
import React from 'react';
|
|
import { render } from '@testing-library/react';
|
|
import SectionHeader from '..';
|
|
|
|
describe('SectionHeader', () => {
|
|
const props = {
|
|
title: 'Foo',
|
|
description: 'Bar'
|
|
};
|
|
|
|
it('renders the title and description', () => {
|
|
const { getByText } = render(<SectionHeader {...props} />);
|
|
|
|
expect(getByText('Foo')).toBeInTheDocument();
|
|
expect(getByText('Bar')).toBeInTheDocument();
|
|
});
|
|
});
|