Created
June 23, 2020 09:43
-
-
Save colabottles/4735d8ae0f1af79912f3fb5e7c4620d2 to your computer and use it in GitHub Desktop.
How to write a Github Gist code snippet for Visually Impaired developers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { render } from '@testing-library/react'; | |
| import App from './App'; | |
| test('renders learn react link', () => { | |
| const { getByText } = render(<App />); | |
| const linkElement = getByText(/learn react/i); | |
| expect(linkElement).toBeInTheDocument(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment