[new feature] Search: add right-icon prop

This commit is contained in:
陈嘉涵
2019-05-27 14:55:07 +08:00
parent ac431276f9
commit 613679c2aa
5 changed files with 34 additions and 2 deletions
+10
View File
@@ -84,3 +84,13 @@ test('left-icon prop', () => {
expect(wrapper).toMatchSnapshot();
});
test('right-icon prop', () => {
const wrapper = mount(Search, {
propsData: {
rightIcon: 'setting-o'
}
});
expect(wrapper).toMatchSnapshot();
});