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