Skip to content

Commit

Permalink
Add fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
jahvi committed May 4, 2018
1 parent 4876922 commit c8a4bed
Show file tree
Hide file tree
Showing 9 changed files with 52 additions and 1 deletion.
1 change: 1 addition & 0 deletions blocks/test/fixtures/core__tag-cloud.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:tag-cloud {"taxonomy":"category"} /-->
13 changes: 13 additions & 0 deletions blocks/test/fixtures/core__tag-cloud.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"uid": "_uid_0",
"name": "core/tag-cloud",
"isValid": true,
"attributes": {
"taxonomy": "category",
"showTagCounts": false
},
"innerBlocks": [],
"originalContent": ""
}
]
10 changes: 10 additions & 0 deletions blocks/test/fixtures/core__tag-cloud.parsed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"blockName": "core/tag-cloud",
"attrs": {
"taxonomy": "category"
},
"innerBlocks": [],
"innerHTML": ""
}
]
1 change: 1 addition & 0 deletions blocks/test/fixtures/core__tag-cloud.serialized.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:tag-cloud {"taxonomy":"category"} /-->
1 change: 1 addition & 0 deletions blocks/test/fixtures/core__tag-cloud__showTagCounts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:tag-cloud {"taxonomy":"category","showTagCounts":true} /-->
13 changes: 13 additions & 0 deletions blocks/test/fixtures/core__tag-cloud__showTagCounts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{
"uid": "_uid_0",
"name": "core/tag-cloud",
"isValid": true,
"attributes": {
"taxonomy": "category",
"showTagCounts": true
},
"innerBlocks": [],
"originalContent": ""
}
]
11 changes: 11 additions & 0 deletions blocks/test/fixtures/core__tag-cloud__showTagCounts.parsed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"blockName": "core/tag-cloud",
"attrs": {
"taxonomy": "category",
"showTagCounts": true
},
"innerBlocks": [],
"innerHTML": ""
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!-- wp:tag-cloud {"taxonomy":"category","showTagCounts":true} /-->
2 changes: 1 addition & 1 deletion core-blocks/test/server-registered.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"core\/block":{"attributes":{"ref":{"type":"number"}}},"core\/latest-posts":{"attributes":{"categories":{"type":"string"},"postsToShow":{"type":"number","default":5},"displayPostDate":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"align":{"type":"string","default":"center"},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"}}}}
{"core\/block":{"attributes":{"ref":{"type":"number"}}},"core\/tag-cloud":{"attributes":{"taxonomy":{"type":"string"},"showTagCounts":{"type":"boolean","default":false},"align":{"type":"string","default":"center"}}},"core\/latest-posts":{"attributes":{"categories":{"type":"string"},"postsToShow":{"type":"number","default":5},"displayPostDate":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"align":{"type":"string","default":"center"},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"}}}}

0 comments on commit c8a4bed

Please sign in to comment.