Skip to content

Commit

Permalink
fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mallardduck committed Oct 17, 2022
1 parent fcdd93d commit 30c7f40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/Unit/HtmlReplacerFragmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use function Spatie\Snapshots\assertMatchesTextSnapshot;

it('can convert a single emoji paragraph', function () {
assertMatchesTextSnapshot(htmlReplacerPngParser("<p>πŸš€</p>"));
assertMatchesTextSnapshot(htmlReplacerPngParser('<p>πŸš€</p>'));
});

it('will not convert an emoji within HTML attributes', function () {
Expand Down Expand Up @@ -59,16 +59,16 @@
});

it('can handle text with an outer P tag', function () {
$textContent = "<p>This is some fancy-πŸ’ƒ Markdown/WYSIWYG text with surrounding &lt;p&gt; tags enabled. πŸŽ‰</p>";
$textContent = '<p>This is some fancy-πŸ’ƒ Markdown/WYSIWYG text with surrounding &lt;p&gt; tags enabled. πŸŽ‰</p>';
assertMatchesTextSnapshot(htmlReplacerPngParser($textContent));
});

it('can handle text without outer P tag', function () {
$textContent = "This is some fancy-πŸ’ƒ Markdown/WYSIWYG text with surrounding &lt;p&gt; tags disabled. πŸŽ‰";
$textContent = 'This is some fancy-πŸ’ƒ Markdown/WYSIWYG text with surrounding &lt;p&gt; tags disabled. πŸŽ‰';
assertMatchesTextSnapshot(htmlReplacerPngParser($textContent));
});

it('can handle text without outer P tag but inner HTML', function () {
$textContent = "This is some fancy-πŸ’ƒ Markdown/WYSIWYG text with surrounding <code><p></code> tags disabled. πŸŽ‰";
$textContent = 'This is some fancy-πŸ’ƒ Markdown/WYSIWYG text with surrounding <code><p></code> tags disabled. πŸŽ‰';
assertMatchesTextSnapshot(htmlReplacerPngParser($textContent));
});
4 changes: 2 additions & 2 deletions tests/Unit/HtmlReplacerPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</html>
HTML;
$results = htmlReplacerPngParser($pageHtml);
expect($results)->toContain("5πŸš€")->not()->toContain('&#');
expect($results)->toContain('5πŸš€')->not()->toContain('&#');
assertMatchesTextSnapshot($results);
});

Expand All @@ -66,7 +66,7 @@
</html>
HTML;
$results = htmlReplacerPngParser($pageHtml);
expect($results)->toContain("5πŸš€")->not()->toContain('&#');
expect($results)->toContain('5πŸš€')->not()->toContain('&#');
assertMatchesTextSnapshot($results);
});

0 comments on commit 30c7f40

Please sign in to comment.