This repository was archived by the owner on Oct 19, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def render
6565 end
6666 end
6767
68- expect ( React . render_to_static_markup ( React . create_element ( Foo ) ) ) . to eq ( ' <input data-foo="12"/>' )
68+ expect ( React . render_to_static_markup ( React . create_element ( Foo ) ) ) . to match ( / <input data-foo="12"( \/ )?>/ )
6969 end
7070
7171 it "will turn the last string in a block into a element" do
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def render
2929 end
3030 end
3131
32- expect ( React . render_to_static_markup ( React . create_element ( Foo ) ) ) . to eq ( ' <input type="text" value=""/>' )
32+ expect ( React . render_to_static_markup ( React . create_element ( Foo ) ) ) . to match ( / <input ( type="text" value=""|value="" type="text")( \/ )?>/ )
3333 end
3434 end
3535
You can’t perform that action at this time.
0 commit comments