[bugfix] Actionsheet: lazy-render not work (#2840)

This commit is contained in:
neverland
2019-02-25 19:33:48 +08:00
committed by GitHub
parent 6fff26caa1
commit 2b9c30f906
3 changed files with 24 additions and 0 deletions
+15
View File
@@ -37,3 +37,18 @@ test('callback events', () => {
expect(onSelect.mock.calls[0][1]).toBeFalsy();
expect(wrapper).toMatchSnapshot();
});
test('disable lazy-render', () => {
const wrapper = mount(Actionsheet, {
propsData: {
lazyRender: false,
actions: [
{ name: 'Option' },
{ name: 'Option' }
],
cancelText: 'Cancel'
}
});
expect(wrapper).toMatchSnapshot();
});