From 802a4a117f2f33941d7bcedd7fcf6c49ed13f418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AA=E6=8D=B1=E5=AE=85?= Date: Sat, 26 Oct 2019 11:00:15 +0800 Subject: [PATCH] fix: lint (#19434) --- components/transfer/__tests__/index.test.js | 30 ++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/components/transfer/__tests__/index.test.js b/components/transfer/__tests__/index.test.js index 0aeb83e1e4..ded8914e44 100644 --- a/components/transfer/__tests__/index.test.js +++ b/components/transfer/__tests__/index.test.js @@ -121,7 +121,7 @@ describe('Transfer', () => { selectedKeys={['a']} targetKeys={['a']} onChange={handleChange} - /> + />, ); wrapper .find(TransferOperation) @@ -471,26 +471,26 @@ describe('Transfer', () => { it('should support onScroll', () => { const onScroll = jest.fn(); - const component = mount( - , - ); - component.find('.ant-transfer-list').at(0).find('.ant-transfer-list-content').at(0).simulate('scroll'); + const component = mount(); + component + .find('.ant-transfer-list') + .at(0) + .find('.ant-transfer-list-content') + .at(0) + .simulate('scroll'); expect(onScroll).toHaveBeenLastCalledWith('left', expect.anything()); - component.find('.ant-transfer-list').at(1).find('.ant-transfer-list-content').at(0).simulate('scroll'); + component + .find('.ant-transfer-list') + .at(1) + .find('.ant-transfer-list-content') + .at(0) + .simulate('scroll'); expect(onScroll).toHaveBeenLastCalledWith('right', expect.anything()); }); it('should support rowKey is function', () => { expect(() => { - mount( - record.key} - />, - ); + mount( record.key} />); }).not.toThrow(); });