Merge branch '2.x' into dev
This commit is contained in:
@@ -52,7 +52,7 @@ test('without price', () => {
|
||||
test('top slot', () => {
|
||||
const wrapper = mount(SubmitBar, {
|
||||
scopedSlots: {
|
||||
top: () => 'top',
|
||||
top: () => 'Custom Top',
|
||||
},
|
||||
});
|
||||
|
||||
@@ -119,3 +119,14 @@ test('button-color prop', () => {
|
||||
});
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('button slot', () => {
|
||||
const wrapper = mount(SubmitBar, {
|
||||
buttonText: 'text',
|
||||
scopedSlots: {
|
||||
button: () => 'Custom button',
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user