feat(Slider): add button-size prop
This commit is contained in:
@@ -111,7 +111,7 @@ it('click vertical', () => {
|
||||
restoreMock();
|
||||
});
|
||||
|
||||
it('bar height', () => {
|
||||
it('bar-height prop', () => {
|
||||
const wrapper = mount(Slider, {
|
||||
propsData: {
|
||||
value: 50,
|
||||
@@ -122,6 +122,17 @@ it('bar height', () => {
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('button-size prop', () => {
|
||||
const wrapper = mount(Slider, {
|
||||
propsData: {
|
||||
value: 50,
|
||||
buttonSize: 10,
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('should not emit change event when value not changed', () => {
|
||||
const wrapper = mount(Slider, {
|
||||
propsData: {
|
||||
|
||||
Reference in New Issue
Block a user