From 8fc1f47dcd488021f20eb12746e6b15f6a7b8179 Mon Sep 17 00:00:00 2001 From: KimSpeer Date: Thu, 29 Aug 2024 13:57:42 +0200 Subject: [PATCH] wip tests --- packages/flags/resources/svg/flag.svg | 6 +++--- packages/flags/tests/CompilesIconsTest.php | 15 +++++++-------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/packages/flags/resources/svg/flag.svg b/packages/flags/resources/svg/flag.svg index b3f1f9225..e1d03c077 100644 --- a/packages/flags/resources/svg/flag.svg +++ b/packages/flags/resources/svg/flag.svg @@ -1,3 +1,3 @@ - - - + + + diff --git a/packages/flags/tests/CompilesIconsTest.php b/packages/flags/tests/CompilesIconsTest.php index 1c25f5dcf..db4fb1fbf 100644 --- a/packages/flags/tests/CompilesIconsTest.php +++ b/packages/flags/tests/CompilesIconsTest.php @@ -14,12 +14,11 @@ class CompilesIconsTest extends \Orchestra\Testbench\TestCase public function it_compiles_a_single_anonymous_component() { $result = svg('flag')->toHtml(); - // Note: the empty class here seems to be a Blade components bug. $expected = ' - - '; + +'; $this->assertEquals($expected, $result); } @@ -31,8 +30,8 @@ public function it_can_add_classes_to_icons() $expected = ' - - '; + +'; $this->assertEquals($expected, $result); } @@ -44,10 +43,10 @@ public function it_can_add_styles_to_icons() $expected = ' - - '; + +'; - $this->assertEquals($expected, $result); + $this->assertEquals(trim($expected), $result); } protected function getPackageProviders($app)