Skip to content

Commit 376c2fa

Browse files
committed
Remove unneeded test for data-reactroot
This is an internal attribute of React and it is removed since React 16. Despite this, it gets added in some cases, specially when we use the bundled react with Sprocket. We don't need to depend our tests on the existance of such attributes
1 parent a5f76ad commit 376c2fa

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Diff for: test/react/server_rendering/bundle_renderer_test.rb

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class BundleRendererTest < ActiveSupport::TestCase
3636
result = @renderer.render("Todo", { todo: "write tests" }, nil)
3737

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

4241
test "#render accepts strings" do

0 commit comments

Comments
 (0)