feat(Row): add wrap prop (#8393)

This commit is contained in:
neverland
2021-03-23 13:05:52 +08:00
committed by GitHub
parent 71d60cdca0
commit 49430a1ef6
5 changed files with 23 additions and 1 deletions
+11
View File
@@ -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');
});