Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
paragon
Overview
Overview
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
OpenEdx
paragon
Commits
1cfec874
Commit
1cfec874
authored
Jun 28, 2017
by
Ari Rizzitano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move checkbox test
parent
bc67b2af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
.storybook/Paragon.stories.jsx
+10
-2
src/CheckBox/CheckBox.test.jsx
+2
-1
No files found.
.storybook/Paragon.stories.jsx
View file @
1cfec874
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable no-console */
import
React
from
'react'
;
import
React
from
'react'
;
import
{
storiesOf
}
from
'@storybook/react'
;
import
{
storiesOf
}
from
'@storybook/react'
;
const
styles
=
{
main
:
{
margin
:
15
,
maxWidth
:
600
,
lineHeight
:
1.4
,
fontFamily
:
'"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif'
,
},
};
storiesOf
(
'Paragon'
,
module
)
storiesOf
(
'Paragon'
,
module
)
.
add
(
'Welcome'
,
()
=>
(
.
add
(
'Welcome'
,
()
=>
(
<
div
>
<
div
style=
{
styles
.
main
}
>
<
h1
>
💎 Paragon
</
h1
>
<
h1
>
💎 Paragon
</
h1
>
<
p
>
<
p
>
This is a documentation and demo space for the Paragon accessible UI component
This is a documentation and demo space for the Paragon accessible UI component
...
...
__tests__/checkbox-
test.jsx
→
src/CheckBox/CheckBox.
test.jsx
View file @
1cfec874
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable no-console */
/* eslint-disable no-console */
import
React
from
'react'
;
import
React
from
'react'
;
import
{
shallow
,
mount
}
from
'enzyme'
;
import
{
shallow
,
mount
}
from
'enzyme'
;
import
CheckBox
from
'.
./src/CheckBo
x'
;
import
CheckBox
from
'.
/inde
x'
;
describe
(
'<CheckBox />'
,
()
=>
{
describe
(
'<CheckBox />'
,
()
=>
{
it
(
'attributes are set correctly'
,
()
=>
{
it
(
'attributes are set correctly'
,
()
=>
{
...
...
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