From 424e80b79f208fe0cf718f713a9e37f8205754d4 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Fri, 8 Dec 2023 09:41:00 +0000 Subject: [PATCH] feat: update search caption tests --- .../components/search_result_caption_component_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/components/search_result_caption_component_spec.rb b/spec/components/search_result_caption_component_spec.rb index 3e6baaada..fa136d91b 100644 --- a/spec/components/search_result_caption_component_spec.rb +++ b/spec/components/search_result_caption_component_spec.rb @@ -11,7 +11,7 @@ RSpec.describe SearchResultCaptionComponent, type: :component do context "when search and filter results are found" do it "renders table caption including the search results and total" do - expect(result.to_html).to eq("\n 2 users matching search and filters
\n
\n") + expect(result.to_html).to eq("\n 2 users matching search and filters\n\n") end end @@ -19,7 +19,7 @@ RSpec.describe SearchResultCaptionComponent, type: :component do let(:filters_count) { nil } it "renders table caption including the search results and total" do - expect(result.to_html).to eq("\n 2 users matching search
\n
\n") + expect(result.to_html).to eq("\n 2 users matching search\n\n") end end @@ -27,7 +27,7 @@ RSpec.describe SearchResultCaptionComponent, type: :component do let(:searched) { nil } it "renders table caption including the search results and total" do - expect(result.to_html).to eq("\n 2 users matching filters
\n
\n") + expect(result.to_html).to eq("\n 2 users matching filters\n\n") end end @@ -44,7 +44,7 @@ RSpec.describe SearchResultCaptionComponent, type: :component do let(:count) { 0 } it "renders table caption with total count only" do - expect(result.to_html).to eq("\n 0 users matching search and filters
\n
\n") + expect(result.to_html).to eq("\n 0 users matching search and filters\n\n") end end @@ -52,7 +52,7 @@ RSpec.describe SearchResultCaptionComponent, type: :component do let(:count) { 1 } it "renders table caption with total count only" do - expect(result.to_html).to eq("\n 1 user matching search and filters
\n
\n") + expect(result.to_html).to eq("\n 1 user matching search and filters\n\n") end end end