Browse Source

test: update modal test

pull/22/head
tangjinzhou 7 years ago
parent
commit
9f08fdb856
  1. 4
      components/modal/__tests__/Modal.test.js

4
components/modal/__tests__/Modal.test.js

@ -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