Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The content of the template passed to slot option is not updated #582

Closed
38elements opened this issue May 5, 2018 · 0 comments
Closed
Labels

Comments

@38elements
Copy link
Contributor

Version

1.0.0-beta.15

Reproduction link

wrapper5.trigger('keydown')

Steps to reproduce

Changing as below.

const wrapper5 = mountingMethod(ComponentWithSlots, { slots: { default: '1{{ foo }}2' }})
expect(wrapper5.find('main').html()).to.equal('<main>1bar2</main>')
wrapper5.trigger('keydown')
const wrapper6 = mountingMethod(ComponentWithSlots, { slots: { default: '<p>1</p><p>2</p>' }})

      const wrapper5 = mountingMethod(ComponentWithSlots, { slots: { default: '1{{ foo }}2' }})
      expect(wrapper5.find('main').html()).to.equal('<main>1bar2</main>')
      wrapper5.trigger('keydown')
      expect(wrapper5.find('main').html()).to.equal('<main>1BAR2</main>') // add this line
      const wrapper6 = mountingMethod(ComponentWithSlots, { slots: { default: '<p>1</p><p>2</p>' }})

What is expected?

The content of the template passed to slot option is updated.

What is actually happening?

The content of the template passed to slot option is not updated.


Would you please check below links?

38elements added a commit to 38elements/vue-test-utils that referenced this issue May 27, 2018
38elements added a commit to 38elements/vue-test-utils that referenced this issue May 27, 2018
@38elements 38elements mentioned this issue May 27, 2018
38elements added a commit to 38elements/vue-test-utils that referenced this issue May 27, 2018
38elements added a commit to 38elements/vue-test-utils that referenced this issue Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants