summaryrefslogtreecommitdiff
path: root/src/Root.test.js
blob: 20fafa05a7522b07892f39bc872322fc0352008c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import React from 'react';
import { render } from 'react-testing-library';
import 'jest-dom/extend-expect';

import Root from './Root';

describe('Root', () => {
    test('greeting is shown', () => {
        const { container } = render(<Root />);

        expect(container).toHaveTextContent('Hello, big world!');
    });
});