Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('props', () => {
const Component = () => <div>
const StateMachine = withStateMachine(statechart)(Component)
const machineState = new State('b')
const renderer = TestRenderer.create(
)
const instance = renderer.getInstance()
const component = renderer.root.findByType(Component)
expect(component.props.foo).toBe('bar')
expect(instance.state.machineState.value).toBe('b')
})
</div>