Skip to content

Commit de0bd22

Browse files
committed
Update tests to expect formatted HTML
Don't think we need a post processor for this
1 parent 70cf80d commit de0bd22

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

packages/framework/tests/Feature/ColoredBlockquoteShortcodesTest.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,22 @@ public function testSignatures()
4444

4545
public function testResolveMethod()
4646
{
47-
$this->assertSame(
48-
'<blockquote class="info"><p>foo</p></blockquote>',
49-
ColoredBlockquotes::resolve('>info foo')
47+
$this->assertSame(<<<'HTML'
48+
<blockquote class="info">
49+
<p>foo</p>
50+
</blockquote>
51+
HTML, ColoredBlockquotes::resolve('>info foo')
5052
);
5153
}
5254

5355
public function testCanUseMarkdownWithinBlockquote()
5456
{
5557
$this->assertSame(
56-
'<blockquote class="info"><p>foo <strong>bar</strong></p></blockquote>',
57-
ColoredBlockquotes::resolve('>info foo **bar**')
58+
<<<HTML
59+
<blockquote class="info">
60+
<p>foo <strong>bar</strong></p>
61+
</blockquote>
62+
HTML, ColoredBlockquotes::resolve('>info foo **bar**')
5863
);
5964
}
6065

packages/framework/tests/Feature/IncludesFacadeTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ public function testAdvancedMarkdownDocumentIsCompiledToHtml()
163163
$expected = <<<'HTML'
164164
<h1>Heading</h1>
165165
<p>This is a paragraph. It has some <strong>bold</strong> and <em>italic</em> text.</p>
166-
<blockquote class="info"><p>Info Blockquote</p></blockquote>
166+
<blockquote class="info">
167+
<p>Info Blockquote</p>
168+
</blockquote>
167169
<pre><code class="language-php"><small class="relative float-right opacity-50 hover:opacity-100 transition-opacity duration-250 not-prose hidden md:block top-0 right-0"><span class="sr-only">Filepath: </span>hello.php</small>echo 'Hello, World!';
168170
</code></pre>
169171
<h2>Subheading</h2>

packages/framework/tests/Unit/MarkdownHelpersTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ public function testRenderWithCustomHydeMarkdownFeatures()
129129

130130
$this->assertSame(<<<'HTML'
131131
<h1>Hello World</h1>
132-
<blockquote class="info"><p>Colored blockquote</p></blockquote>
132+
<blockquote class="info">
133+
<p>Colored blockquote</p>
134+
</blockquote>
133135
<p><a href="index.html">Home</a></p>
134136

135137
HTML, $html);

0 commit comments

Comments
 (0)