-
Notifications
You must be signed in to change notification settings - Fork 665
Closed
Labels
Description
Version
1.0.0-beta.15
Reproduction link
wrapper5.trigger('keydown') |
Steps to reproduce
Changing as below.
vue-test-utils/test/specs/mounting-options/slots.spec.js
Lines 109 to 112 in 1a4d12f
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?