Skip to content

Commit dea1965

Browse files
committed
Re-arrange test lexically
1 parent 7556380 commit dea1965

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/TreeNode.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,6 @@ describe('<TreeNode />', () => {
3535
});
3636
});
3737

38-
describe('label', () => {
39-
it('should render the node\'s label', () => {
40-
const wrapper = shallow(
41-
<TreeNode {...baseProps} label="Europa" value="europa" />,
42-
);
43-
44-
assert.isTrue(wrapper.contains(
45-
<span className="rct-title">Europa</span>,
46-
));
47-
});
48-
});
49-
5038
describe('checked', () => {
5139
it('should render icons associated with each check state', () => {
5240
const iconMap = {
@@ -124,4 +112,16 @@ describe('<TreeNode />', () => {
124112
assert.isTrue(wrapper.contains(<i className="fa fa-folder-o" />));
125113
});
126114
});
115+
116+
describe('label', () => {
117+
it('should render the node\'s label', () => {
118+
const wrapper = shallow(
119+
<TreeNode {...baseProps} label="Europa" value="europa" />,
120+
);
121+
122+
assert.isTrue(wrapper.contains(
123+
<span className="rct-title">Europa</span>,
124+
));
125+
});
126+
});
127127
});

0 commit comments

Comments
 (0)