frontend-collective / frontend-collective/react-sortable-tree

How can I write tests that cover code I've implemented

Open
#500 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5k
Forks
914
PR merge metrics
No merged PRs in 30d

Description

Sorry, guys - I've searched and I can't find any details on how to write tests.
I have the following (cut-down) Sortable tree:
` ({
onClick: e =>
disabled || this.ignoreItem(e) ? {} : setGroup(rowInfo.node),
})}
/>
`
How can I test that the generated onClick event works as expected? (treeData, disabled, and setGroup are props)

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.