Skip to content

Commit

Permalink
Minor change to tests
Browse files Browse the repository at this point in the history
novaisea committed Jul 5, 2021
1 parent 4594254 commit fa183f3
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/App.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { render, screen, fireEvent } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import React from 'react';

import App from './App';


/** Tests Frontend */
describe('App', () => {
test('renders App component', () => {
render(<App />);
@@ -11,3 +12,16 @@ describe('App', () => {
});

});

/* Test not working properly

import { render, screen } from '@testing-library/react';
import App from './App';

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

*/

0 comments on commit fa183f3

Please sign in to comment.