Skip to content

Commit 28fd8aa

Browse files
committed
Update list item assertions
1 parent f4a054d commit 28fd8aa

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/Transformers/BardTransformerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ public function it_converts_html_to_prosemirror()
7070
], $output);
7171

7272
$this->assertContains(['type' => 'orderedList', 'content' => [
73-
['type' => 'listItem', 'content' => [['type' => 'paragraph', 'content' => [['type' => 'text', 'text' => 'One']]]]],
74-
['type' => 'listItem', 'content' => [['type' => 'paragraph', 'content' => [['type' => 'text', 'text' => 'Two']]]]],
75-
['type' => 'listItem', 'content' => [['type' => 'paragraph', 'content' => [['type' => 'text', 'text' => 'Three']]]]],
76-
['type' => 'listItem', 'content' => [['type' => 'paragraph', 'content' => [['type' => 'text', 'text' => 'Four']]]]],
73+
['type' => 'listItem', 'content' => [['type' => 'text', 'text' => 'One']]],
74+
['type' => 'listItem', 'content' => [['type' => 'text', 'text' => 'Two']]],
75+
['type' => 'listItem', 'content' => [['type' => 'text', 'text' => 'Three']]],
76+
['type' => 'listItem', 'content' => [['type' => 'text', 'text' => 'Four']]],
7777
]], $output);
7878

7979
$this->assertContains(['type' => 'paragraph', 'attrs' => ['textAlign' => 'left'], 'content' => [

tests/WordPress/GutenbergTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,17 @@ public function it_transforms_list_blocks()
134134
[
135135
'type' => 'orderedList',
136136
'content' => [
137-
['type' => 'listItem', 'content' => [['type' => 'paragraph', 'content' => [['type' => 'text', 'text' => 'Ordered One']]]]],
138-
['type' => 'listItem', 'content' => [['type' => 'paragraph', 'content' => [['type' => 'text', 'text' => 'Ordered Two']]]]],
139-
['type' => 'listItem', 'content' => [['type' => 'paragraph', 'content' => [['type' => 'text', 'text' => 'Ordered Three']]]]],
137+
['type' => 'listItem', 'content' => [['type' => 'text', 'text' => 'Ordered One']]],
138+
['type' => 'listItem', 'content' => [['type' => 'text', 'text' => 'Ordered Two']]],
139+
['type' => 'listItem', 'content' => [['type' => 'text', 'text' => 'Ordered Three']]],
140140
],
141141
],
142142
[
143143
'type' => 'bulletList',
144144
'content' => [
145-
['type' => 'listItem', 'content' => [['type' => 'paragraph', 'content' => [['type' => 'text', 'text' => 'Unordered One']]]]],
146-
['type' => 'listItem', 'content' => [['type' => 'paragraph', 'content' => [['type' => 'text', 'text' => 'Unordered Two']]]]],
147-
['type' => 'listItem', 'content' => [['type' => 'paragraph', 'content' => [['type' => 'text', 'text' => 'Unordered Three']]]]],
145+
['type' => 'listItem', 'content' => [['type' => 'text', 'text' => 'Unordered One']]],
146+
['type' => 'listItem', 'content' => [['type' => 'text', 'text' => 'Unordered Two']]],
147+
['type' => 'listItem', 'content' => [['type' => 'text', 'text' => 'Unordered Three']]],
148148
],
149149
],
150150
], $output);

0 commit comments

Comments
 (0)