You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have implemented NativeBase's CheckBox where you can find here.
It simply iterates over a list and return a set of ListItems which contains CheckBox.
We are trying to write unit test of this component and stuck at simulation of press event.
The press event is bind to ListItems. You can find the test code below. Having trouble testing pressevent.
import * as React from 'react'
import { mount } from 'enzyme'
import * as chai from 'chai'
import { ListItem } from 'native-base'
it('onPress()', () => {
const wrapper = mount(getComponent(commonProps))
wrapper.find(ListItem).first().simulate('press')
})
And the console output is
TypeError: ReactWrapper::simulate() event 'press' does not exist
We appreciate any feedback about event simulation.
The text was updated successfully, but these errors were encountered:
We have implemented NativeBase's CheckBox where you can find here.
It simply iterates over a list and return a set of ListItems which contains CheckBox.
We are trying to write unit test of this component and stuck at simulation of press event.
The press event is bind to ListItems. You can find the test code below. Having trouble testing
press
event.And the console output is
We appreciate any feedback about event simulation.
The text was updated successfully, but these errors were encountered: