test: update modal test

pull/22/head
tangjinzhou 7 years ago
parent 3d94b10f09
commit 9f08fdb856

@ -8,6 +8,9 @@ const ModalTester = {
return this.$refs.container
},
},
updated () {
console.log('updated')
},
render () {
const modalProps = {
@ -32,6 +35,7 @@ const ModalTester = {
describe('Modal', () => {
it('render correctly', () => {
const wrapper = mount(ModalTester)
wrapper.setProps({ visible: true })
expect(wrapper.html()).toMatchSnapshot()
const wrapper1 = mount(
{

Loading…
Cancel
Save