Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IT2810_P2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IT2810-H19
T
Teams
Team 36
IT2810_P2
Commits
47ebcb1a
Commit
47ebcb1a
authored
Sep 25, 2019
by
Svein Olav Styve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename test description
parent
94643766
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
src/tests/FavoriteSection.test.js
src/tests/FavoriteSection.test.js
+1
-1
src/tests/__snapshots__/FavoriteSection.test.js.snap
src/tests/__snapshots__/FavoriteSection.test.js.snap
+21
-0
No files found.
src/tests/FavoriteSection.test.js
View file @
47ebcb1a
...
...
@@ -3,7 +3,7 @@ import renderer from 'react-test-renderer';
import
FavoriteSection
from
'
../components/FavoriteSection
'
;
// Snapshot Test FavoriteSection-component
describe
(
'
TabElement
'
,
()
=>
{
describe
(
'
FavoriteSection
'
,
()
=>
{
test
(
'
snapshot renders
'
,
()
=>
{
const
component
=
renderer
.
create
(
<
FavoriteSection
open
=
{()
=>
{}}
/>
)
;
...
...
src/tests/__snapshots__/FavoriteSection.test.js.snap
View file @
47ebcb1a
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`FavoriteSection snapshot renders 1`] = `
<div
className="Button-container"
>
<button
onClick={[Function]}
>
Save as favorite
</button>
<button
onClick={[Function]}
>
Open favourite
</button>
<p>
</p>
</div>
`;
exports[`TabElement snapshot renders 1`] = `
<div
className="Button-container"
...
...
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