-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from lokiuz/next
0.10.0
- Loading branch information
Showing
27 changed files
with
5,922 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
const react = require('react'); | ||
// Resolution for requestAnimationFrame not supported in jest error : | ||
// https://github.com/facebook/react/issues/9102#issuecomment-283873039 | ||
global.window = global; | ||
window.addEventListener = () => {}; | ||
window.requestAnimationFrame = () => { | ||
throw new Error('requestAnimationFrame is not supported in Node'); | ||
}; | ||
|
||
module.exports = react; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`renders blocks with depth correctly 1/2 1`] = ` | ||
<div> | ||
<ul | ||
className="ul-level-0" | ||
> | ||
<li> | ||
Hey | ||
<ul | ||
className="ul-level-1" | ||
> | ||
<li> | ||
Ho | ||
<ul | ||
className="ul-level-2" | ||
> | ||
<li> | ||
Let's | ||
</li> | ||
</ul> | ||
<ol | ||
className="ol-level-2" | ||
> | ||
<li> | ||
Go | ||
</li> | ||
</ol> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
`; | ||
|
||
exports[`renders blocks with depth correctly 2/2 1`] = ` | ||
<div> | ||
<ul | ||
className="ul-level-0" | ||
> | ||
<li> | ||
Hey | ||
<ul | ||
className="ul-level-1" | ||
> | ||
<li> | ||
Ho | ||
<ul | ||
className="ul-level-2" | ||
> | ||
<li> | ||
Let's | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<ol | ||
className="ol-level-0" | ||
> | ||
<li> | ||
Go | ||
</li> | ||
</ol> | ||
</div> | ||
`; | ||
|
||
exports[`renders blocks with depth from custom map correctly 1/2 1`] = ` | ||
<div> | ||
<ul> | ||
<li> | ||
Hey | ||
<ul> | ||
<li> | ||
Ho | ||
<ul> | ||
<li> | ||
Let's | ||
</li> | ||
</ul> | ||
<ol> | ||
<li> | ||
Go | ||
</li> | ||
</ol> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
`; | ||
|
||
exports[`renders blocks with renderer from custom map 1`] = ` | ||
<div> | ||
<p> | ||
Paragraph one | ||
</p> | ||
<blockquote> | ||
A quote | ||
Spanning multiple lines | ||
</blockquote> | ||
<p> | ||
A second paragraph. | ||
</p> | ||
</div> | ||
`; | ||
|
||
exports[`renders blocks with single char correctly 1`] = ` | ||
<div> | ||
<p> | ||
! | ||
</p> | ||
</div> | ||
`; | ||
|
||
exports[`renders correctly 1`] = ` | ||
<div> | ||
<p> | ||
<strong> | ||
Lorem | ||
</strong> | ||
<strong> | ||
<em> | ||
ipsum | ||
</em> | ||
</strong> | ||
<strong> | ||
<em> | ||
<u> | ||
<span | ||
style={ | ||
Object { | ||
"textDecoration": "line-through", | ||
} | ||
} | ||
> | ||
dolor | ||
</span> | ||
</u> | ||
</em> | ||
</strong> | ||
<em> | ||
sit amet, | ||
</em> | ||
pro nisl sonet ad. | ||
</p> | ||
<blockquote> | ||
Eos affert numquam id, in est meis nobis. Legimus singulis suscipiantur eum in, | ||
<em> | ||
ceteros invenire | ||
</em> | ||
tractatos his id. | ||
</blockquote> | ||
<p> | ||
<strong> | ||
Facer facilis definiebas ea pro, mei malis libris latine an. Senserit moderatius vituperata vis in. | ||
</strong> | ||
</p> | ||
</div> | ||
`; | ||
|
||
exports[`renders provided fallback block if current block type is unsuported 1`] = ` | ||
<div> | ||
<blockquote> | ||
Block of this type is not supported | ||
</blockquote> | ||
</div> | ||
`; | ||
|
||
exports[`renders unstyled block by default if current block type is unsuported 1`] = ` | ||
<div> | ||
<p> | ||
Block of this type is not supported | ||
</p> | ||
</div> | ||
`; |
Oops, something went wrong.