feat(ActionSheet): add description prop (#4691)

This commit is contained in:
neverland
2019-10-11 15:28:52 +08:00
committed by GitHub
parent 79322ea892
commit 9f523682e0
9 changed files with 133 additions and 36 deletions

View File

@@ -162,3 +162,15 @@ test('color option', () => {
expect(wrapper).toMatchSnapshot();
});
test('description prop', () => {
const wrapper = mount(ActionSheet, {
propsData: {
value: true,
description: 'This is a description',
actions: [{ name: 'Option' }]
}
});
expect(wrapper).toMatchSnapshot();
});