feat(Row): add wrap prop (#8393)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { Row } from '..';
|
||||
import { mount } from '../../../test';
|
||||
|
||||
test('should add "van-row--nowrap" class when wrap prop is false', () => {
|
||||
const wrapper = mount(Row, {
|
||||
props: {
|
||||
wrap: false,
|
||||
},
|
||||
});
|
||||
expect(wrapper.classes()).toContain('van-row--nowrap');
|
||||
});
|
||||
Reference in New Issue
Block a user