Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…dropdown-tree-select into developTemp
  • Loading branch information
ellinge committed Apr 1, 2019
2 parents 5137f1a + 6386552 commit 2cbf660
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tree-node/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ test('notifies node toggle changes', t => {
const onChange = spy()

const wrapper = mount(<TreeNode {...node} onNodeToggle={onChange} />)
wrapper.find('.toggle').simulate('click')
const event = {
stopPropagation: spy(),
nativeEvent: { stopImmediatePropagation: spy() }
}
wrapper.find('.toggle').simulate('click', event)
t.true(onChange.calledWith('0-0-0'))
})

Expand Down

0 comments on commit 2cbf660

Please sign in to comment.