Skip to content

Commit

Permalink
test(Transfer): add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchanz committed May 23, 2019
1 parent 9df069d commit 29a858d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/transfer/index-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,15 @@ describe('Transfer', () => {
assert(wrapper.find('#transfer-test-panel-header-left').length === 1)
assert(wrapper.find('#transfer-test-panel-header-right').length === 1)
});

it('should disabled item not move', () => {
wrapper = mount(<Transfer mode="simple" defaultValue={0} dataSource={dataSource} />);
findFooter(wrapper, 0)
.find('a.next-transfer-panel-move-all')
.simulate('click');
assert(findItems(wrapper, 0).length === 1);
assert(findItems(wrapper, 1).length === 3);
});
});

function findPanel(wrapper, panelIndex) {
Expand Down

0 comments on commit 29a858d

Please sign in to comment.