fix(Button): should hide border when color is linear-gradient (#4342)
This commit is contained in:
@@ -72,3 +72,13 @@ test('touchstart event', () => {
|
||||
wrapper.trigger('touchstart');
|
||||
expect(onTouchstart).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
test('hide border when color is gradient', () => {
|
||||
const wrapper = mount(Button, {
|
||||
propsData: {
|
||||
color: 'linear-gradient(#000, #fff)'
|
||||
}
|
||||
});
|
||||
|
||||
expect(wrapper.element.style.border).toEqual('0px');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user