We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38ea06f commit 20e055aCopy full SHA for 20e055a
test/TreeNode.js
@@ -24,6 +24,15 @@ describe('<TreeNode />', () => {
24
25
assert.isTrue(wrapper.find('.rct-node').exists());
26
});
27
+
28
+ it('should render a label associated with a checkbox', () => {
29
+ const wrapper = shallow(
30
+ <TreeNode {...baseProps} treeId="planets" value="jupiter" />,
31
+ );
32
33
+ assert.equal('planets-jupiter', wrapper.find('label').prop('htmlFor'));
34
+ assert.equal('planets-jupiter', wrapper.find('label input[type="checkbox"]').prop('id'));
35
+ });
36
37
38
describe('label', () => {
0 commit comments