Skip to content

Commit

Permalink
Merge pull request #12 from hayzey/fix/fixing_unit_tests
Browse files Browse the repository at this point in the history
Fixed broken test
  • Loading branch information
hayzey authored Oct 5, 2020
2 parents b456c25 + c7401f3 commit 8025ccd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/App/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import { render } from '@testing-library/react';
import App from './App';
import { App } from './App';

test('renders learn react link', () => {
const { getByText } = render(<App />);
const linkElement = getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
const { getByText } = render(<App />);
const mainEle = document.querySelector('main');
expect(mainEle).toBeInTheDocument();
});

0 comments on commit 8025ccd

Please sign in to comment.