feat(Cell): allow to disable clickable when using is-link (#7923)
This commit is contained in:
@@ -83,3 +83,13 @@ test('should change icon class prefix when using icon-prefix prop', () => {
|
||||
|
||||
expect(wrapper.html()).toMatchSnapshot();
|
||||
});
|
||||
|
||||
test('should allow to disable clicakble when using is-link prop', () => {
|
||||
const wrapper = mount(Cell, {
|
||||
props: {
|
||||
isLink: true,
|
||||
clickable: false,
|
||||
},
|
||||
});
|
||||
expect(wrapper.classes()).not.toContain('van-cell--clickable');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user