FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codespaces-react/src/App.test.js at main · i3nt/codespaces-react · GitHub
i3nt
codespaces-react
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codespaces-react
/
src
/
App.test.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
8 lines (7 loc) · 246 Bytes
Breadcrumbs
codespaces-react
/
src
/
App.test.js
Copy path
File metadata and controls
8 lines (7 loc) · 246 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
import
{
render
,
screen
}
from
'@testing-library/react'
;
import
App
from
'./App'
;
test
(
'renders learn react link'
,
(
)
=>
{
render
(
<
App
/>
)
;
const
linkElement
=
screen
.
getByText
(
/
l
e
a
r
n
r
e
a
c
t
/
i
)
;
expect
(
linkElement
)
.
toBeInTheDocument
(
)
;
}
)
;
Back
|
FazBrowse Home
|
New Git URL