diff --git a/components/transfer/__tests__/__snapshots__/index.test.js.snap b/components/transfer/__tests__/__snapshots__/index.test.js.snap
index 3eb4fadffa..5f66af2e7c 100644
--- a/components/transfer/__tests__/__snapshots__/index.test.js.snap
+++ b/components/transfer/__tests__/__snapshots__/index.test.js.snap
@@ -1,192 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`Transfer should add custom styles when their props are provided 1`] = `
-
-`;
-
exports[`Transfer should render correctly 1`] = `
{
backgroundColor: 'yellow',
};
- const wrapper = render();
+ const component = mount();
- const outterWrap = wrapper[0];
- const listSource = outterWrap.children[0];
- const operation = outterWrap.children[1];
- const listTarget = outterWrap.children[2];
+ const wrapper = component.find('.ant-transfer');
+ const listSource = component.find('.ant-transfer-list').first();
+ const listTarget = component.find('.ant-transfer-list').last();
+ const operation = component.find('.ant-transfer-operation').first();
- expect(outterWrap.attribs.style).toBe('background-color:red');
- expect(listSource.attribs.style).toBe('background-color:blue');
- expect(operation.attribs.style).toBe('background-color:yellow');
- expect(listTarget.attribs.style).toBe('background-color:blue');
-
- expect(wrapper).toMatchSnapshot();
+ expect(wrapper.prop('style')).toHaveProperty('backgroundColor', 'red');
+ expect(listSource.prop('style')).toHaveProperty('backgroundColor', 'blue');
+ expect(listTarget.prop('style')).toHaveProperty('backgroundColor', 'blue');
+ expect(operation.prop('style')).toHaveProperty('backgroundColor', 'yellow');
});
});