Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
9af04226
Unverified
Commit
9af04226
authored
7 years ago
by
Dan Abramov
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Unmount the App in the default test (#3511)
parent
770fdf4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-scripts/template/src/App.test.js
+1
-0
packages/react-scripts/template/src/App.test.js
with
1 addition
and
0 deletions
+1
-0
packages/react-scripts/template/src/App.test.js
+
1
-
0
View file @
9af04226
...
@@ -5,4 +5,5 @@ import App from './App';
...
@@ -5,4 +5,5 @@ import App from './App';
it
(
'
renders without crashing
'
,
()
=>
{
it
(
'
renders without crashing
'
,
()
=>
{
const
div
=
document
.
createElement
(
'
div
'
);
const
div
=
document
.
createElement
(
'
div
'
);
ReactDOM
.
render
(
<
App
/>
,
div
);
ReactDOM
.
render
(
<
App
/>
,
div
);
ReactDOM
.
unmountComponentAtNode
(
div
);
});
});
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment