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 1
1
<template >
2
2
<div >
3
3
Form
4
- <slot />
4
+ <slot :username = " 'blah' " />
5
5
</div >
6
6
</template >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<Form >
3
3
<template v-slot =" { username } " >
4
- <FormError :show =" true " />
4
+ <FormError :show =" username " />
5
5
</template >
6
6
</Form >
7
7
</template >
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ import ComponentWithParentName from '~resources/components/component-with-parent
6
6
import { describeWithShallowAndMount , vueVersion } from '~resources/utils'
7
7
import { itDoNotRunIf } from 'conditional-specs'
8
8
import 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'
10
10
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' , ( ) => {
12
12
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' )
15
15
} )
16
16
17
17
describeWithShallowAndMount ( 'options.slots' , mountingMethod => {
You can’t perform that action at this time.
0 commit comments