Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sample_pdp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Praveen Reghunathan Nair
sample_pdp
Commits
2c332555
Commit
2c332555
authored
Feb 11, 2020
by
Praveen Reghunathan Nair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making 100% coverage for App
parent
b6739fa4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
App.spec.js
src/App/App.spec.js
+7
-0
No files found.
src/App/App.spec.js
View file @
2c332555
import
React
from
'react'
;
import
{
shallow
,
mount
}
from
'enzyme'
;
import
App
from
'./App'
;
import
LoadingAnimation
from
'components/LoadingAnimation'
;
describe
(
'App Component'
,
()
=>
{
...
...
@@ -14,4 +15,10 @@ describe('App Component', () => {
wrapper
.
unmount
();
});
it
(
'should show LoadingAnimation when loading prop is set to true'
,
()
=>
{
const
wrapper
=
shallow
(
<
App
{...
defaultProps
}
loading
=
{
true
}
/>
)
;
expect
(
wrapper
.
find
(
LoadingAnimation
)).
toHaveLength
(
1
);
wrapper
.
unmount
();
});
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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