2019-08-31 19:17:03 +02:00
|
|
|
import React from 'react';
|
2020-08-22 22:23:39 +02:00
|
|
|
import { render } from '@testing-library/react';
|
2019-08-31 19:17:03 +02:00
|
|
|
import App from './App';
|
|
|
|
|
2020-08-22 22:23:39 +02:00
|
|
|
test('renders learn react link', () => {
|
|
|
|
const { getByText } = render(<App />);
|
|
|
|
const linkElement = getByText(/learn react/i);
|
|
|
|
expect(linkElement).toBeInTheDocument();
|
2019-08-31 19:17:03 +02:00
|
|
|
});
|