Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
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
Alex
next.js
Commits
9a78dd8d
Commit
9a78dd8d
authored
Oct 26, 2016
by
nkzawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix jest example styles
parent
06b8e5e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
index.test.js
examples/with-jest/__tests__/index.test.js
+8
-8
index.js
examples/with-jest/pages/index.js
+4
-4
No files found.
examples/with-jest/__tests__/index.test.js
View file @
9a78dd8d
import
React
from
'react'
;
import
{
shallow
}
from
'enzyme'
;
import
App
from
'../pages/index.js'
;
/* global it, expect */
import
React
from
'react'
import
{
shallow
}
from
'enzyme'
import
App
from
'../pages/index.js'
it
(
'App shows "Hello world!"'
,
()
=>
{
const
app
=
shallow
(
<
App
/>
)
;
<
App
/>
)
expect
(
app
.
find
(
'p'
).
text
()).
toEqual
(
'Hello world!'
);
});
\ No newline at end of file
expect
(
app
.
find
(
'p'
).
text
()).
toEqual
(
'Hello world!'
)
})
examples/with-jest/pages/index.js
View file @
9a78dd8d
import
React
from
'react'
export
default
()
=>
(
<
div
>
<
p
>
Hello
world
!<
/p
>
<
/div
>
)
\ No newline at end of file
<
div
>
<
p
>
Hello
world
!<
/p
>
<
/div
>
)
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