spec/react/react_spec.rb in hyper-react-0.11.0 vs spec/react/react_spec.rb in hyper-react-0.12.0
- old
+ new
@@ -199,16 +199,9 @@
node = React.render(React.create_element('span') { "lorem" }, div)
expect(`#{node}.nodeType`).to eq(1)
end
end
- describe "render_to_string" do
- it "should render a React.Element to string" do
- ele = React.create_element('span') { "lorem" }
- expect(React.render_to_string(ele)).to be_kind_of(String)
- end
- end
-
describe "unmount_component_at_node" do
async "should unmount component at node" do
div = `document.createElement("div")`
React.render(React.create_element('span') { "lorem" }, div ) do
run_async {