Skip to content

Commit

Permalink
Add verse tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jul 8, 2017
1 parent f816789 commit 2c3fcb2
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blocks/test/fixtures/core__verse.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- wp:core/verse -->
<pre class="wp-block-verse">A <em>verse</em><br>And more!</pre>
<!-- /wp:core/verse -->
20 changes: 20 additions & 0 deletions blocks/test/fixtures/core__verse.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"uid": "_uid_0",
"name": "core/verse",
"attributes": {
"content": [
"A ",
{
"type": "em",
"children": "verse"
},
"",
{
"type": "br"
},
"And more!"
]
}
}
]
11 changes: 11 additions & 0 deletions blocks/test/fixtures/core__verse.parsed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"blockName": "core/verse",
"attrs": null,
"rawContent": "\n<pre class=\"wp-block-verse\">A <em>verse</em>…<br>And more!</pre>\n"
},
{
"attrs": {},
"rawContent": "\n"
}
]
3 changes: 3 additions & 0 deletions blocks/test/fixtures/core__verse.serialized.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!-- wp:core/verse -->
<pre class="wp-block-verse">A <em>verse</em><br/>And more!</pre>
<!-- /wp:core/verse -->

0 comments on commit 2c3fcb2

Please sign in to comment.