File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div >
33 Form
4- <slot />
4+ <slot :username = " 'blah' " />
55 </div >
66</template >
Original file line number Diff line number Diff line change 11<template >
22 <Form >
33 <template v-slot =" { username } " >
4- <FormError :show =" true " />
4+ <FormError :show =" username " />
55 </template >
66 </Form >
77</template >
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import ComponentWithParentName from '~resources/components/component-with-parent
66import { describeWithShallowAndMount , vueVersion } from '~resources/utils'
77import { itDoNotRunIf } from 'conditional-specs'
88import LoginForm , { FormError } from '~resources/components/LoginForm.vue'
9- import { mount , createLocalVue , shallowMount } from 'packages/test-utils/src'
9+ import { mount , createLocalVue } from 'packages/test-utils/src'
1010
11- it ( 'fails to reproduce https://github.com/vuejs/vue-test-utils/issues/1766' , ( ) => {
11+ it . only ( 'fails to reproduce https://github.com/vuejs/vue-test-utils/issues/1766' , ( ) => {
1212 const localVue = createLocalVue ( )
13- const wrapper = shallowMount ( LoginForm , { localVue } )
14- expect ( wrapper . findComponent ( FormError ) . props ( 'show' ) ) . toBeTruthy ( )
13+ const wrapper = mount ( LoginForm , { localVue } )
14+ expect ( wrapper . findComponent ( FormError ) . props ( 'show' ) ) . toBe ( 'blah' )
1515} )
1616
1717describeWithShallowAndMount ( 'options.slots' , mountingMethod => {
You can’t perform that action at this time.
0 commit comments