From 9ef45dc6fad267406ef295da303db13d5f2a673c Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 1 Dec 2024 16:16:11 +0100 Subject: [PATCH] Update test for changed classes --- .../tests/Feature/Views/SidebarTableOfContentsViewTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/framework/tests/Feature/Views/SidebarTableOfContentsViewTest.php b/packages/framework/tests/Feature/Views/SidebarTableOfContentsViewTest.php index aaa6568dea7..5f1e09c5833 100644 --- a/packages/framework/tests/Feature/Views/SidebarTableOfContentsViewTest.php +++ b/packages/framework/tests/Feature/Views/SidebarTableOfContentsViewTest.php @@ -376,10 +376,11 @@ protected function render(string $markdown): string protected function stripTailwindClasses(string $html): string { $replacements = [ - ' py-3 space-y-1.5' => '', - ' class="block pl-8 -ml-8 opacity-80 hover:opacity-100 hover:bg-gray-200/20 transition-all duration-300 relative"' => '', + ' pb-3' => '', + ' class="-ml-8 pl-8 opacity-80 hover:opacity-100 hover:bg-gray-200/20 transition-all duration-300"' => '', 'class="text-[75%] opacity-50 mr-1 hover:opacity-100 transition-opacity duration-300"' => '', - ' class="space-y-1.5"' => '', + ' class="my-0.5"' => '', + ' class="pl-2"' => '', ]; return str_replace(array_keys($replacements), array_values($replacements), $html);