From 3f79fd7ea744bd18134785c37b87a2f4bcff0347 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Mon, 21 Oct 2024 17:07:40 -0700 Subject: [PATCH] Add test to ensure icon component does not end in newline --- .../BladeComponents/IconComponentTest.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tests/Unit/BladeComponents/IconComponentTest.php diff --git a/tests/Unit/BladeComponents/IconComponentTest.php b/tests/Unit/BladeComponents/IconComponentTest.php new file mode 100644 index 0000000000..b418b38384 --- /dev/null +++ b/tests/Unit/BladeComponents/IconComponentTest.php @@ -0,0 +1,20 @@ + 'checkout'])->render(); + + $this->assertFalse( + Str::endsWith($renderedTemplateString, PHP_EOL), + 'Newline found at end of icon component. Bootstrap tables will not render if there is a newline at the end of the file.' + ); + } +}