Skip to content

Commit

Permalink
remove assertions on data-reactroot
Browse files Browse the repository at this point in the history
  • Loading branch information
Judahmeek committed Jul 21, 2023
1 parent 2367c2a commit b07477e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions test/react/server_rendering/bundle_renderer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class BundleRendererTest < ActiveSupport::TestCase
result = @renderer.render("Todo", { todo: "write tests" }, nil)

assert_match(%r{<li.*write tests</li>}, result)
assert_match(/data-reactroot/, result)
end

test "#render accepts strings" do
Expand All @@ -49,7 +48,6 @@ class BundleRendererTest < ActiveSupport::TestCase
result = @renderer.render("Todo", { todo: "write more tests" }, :static)

assert_match(%r{<li>write more tests</li>}, result)
assert_no_match(/data-reactroot/, result)
end

test "#render replays console messages" do # rubocop:disable Minitest/MultipleAssertions
Expand Down
2 changes: 0 additions & 2 deletions test/react/server_rendering/exec_js_renderer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ class ExecJSRendererTest < ActiveSupport::TestCase
result = @renderer.render("Todo", { todo: "write tests" }.to_json, {})

assert_match(%r{<li.*write tests</li>}, result)
assert_match(/data-reactroot/, result)
end

test "#render accepts render_function:" do
result = @renderer.render("Todo", { todo: "write more tests" }.to_json, render_function: "renderToStaticMarkup")

assert_match(%r{<li>write more tests</li>}, result)
assert_no_match(/data-reactroot/, result)
end

test "#before_render is called before #after_render" do
Expand Down

0 comments on commit b07477e

Please sign in to comment.