chore(client): update react-testing-library

This commit is contained in:
ValeraS
2019-06-10 11:41:46 +03:00
committed by Mrugesh Mohapatra
parent 589564e56c
commit 01ddc7c9a2
3 changed files with 109 additions and 65 deletions

View File

@@ -1,11 +1,13 @@
/* global expect */
import React from 'react';
import { render } from 'react-testing-library';
import { render, cleanup } from '@testing-library/react';
import 'jest-dom/extend-expect';
import Loader from './Loader';
describe('<Loader />', () => {
afterEach(cleanup);
it('renders to the DOM', () => {
const { container } = render(<Loader />);
expect(container).toBeTruthy();