Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 0537300

Browse files
committed
Fix Utils spec
1 parent d389abc commit 0537300

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/react/test/utils_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ def initialize
1414
super(`React.addons.TestUtils.Simulate`)
1515
end
1616

17-
def click(element)
18-
`#{@native}['click']`.call(`#{element.to_n}.getDOMNode()`, {})
17+
def click(component_instance)
18+
`#{@native}['click']`.call(component_instance.dom_node, {})
1919
end
2020
end
2121
end

0 commit comments

Comments
 (0)