fix(Button): should hide border when color is linear-gradient (#4342)

This commit is contained in:
neverland
2019-09-03 16:08:40 +08:00
committed by GitHub
parent d8bd873318
commit 252bd25662
4 changed files with 20 additions and 4 deletions
+10
View File
@@ -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');
});