@@ -7,6 +7,8 @@ import ComponentWithNestedChildren from '~resources/components/component-with-ne
77import ComponentWithLifecycleHooks from '~resources/components/component-with-lifecycle-hooks.vue'
88import ComponentWithoutName from '~resources/components/component-without-name.vue'
99import ComponentAsAClassWithChild from '~resources/components/component-as-a-class-with-child.vue'
10+ import ComponentWithVSlotSyntax from '~resources/components/component-with-v-slot-syntax.vue'
11+ import ComponentWithVSlot from '~resources/components/component-with-v-slot.vue'
1012import RecursiveComponent from '~resources/components/recursive-component.vue'
1113import { vueVersion } from '~resources/utils'
1214import { describeRunIf , itDoNotRunIf } from 'conditional-specs'
@@ -96,6 +98,18 @@ describeRunIf(process.env.TEST_ENV !== 'node', 'shallowMount', () => {
9698 )
9799 } )
98100
101+ it ( 'renders SFC with named slots with v-slot syntax' , ( ) => {
102+ const wrapper = shallowMount ( ComponentWithVSlotSyntax )
103+
104+ expect ( wrapper . find ( ComponentWithVSlot ) . exists ( ) ) . to . equal ( true )
105+ expect ( wrapper . find ( '.new-example' ) . exists ( ) ) . to . equal ( true )
106+ expect ( wrapper . html ( ) ) . to . equal (
107+ '<componentwithvslot-stub>\n' +
108+ ' <p class="new-example">new slot syntax</p>\n' +
109+ '</componentwithvslot-stub>'
110+ )
111+ } )
112+
99113 it ( 'renders named slots with v-slot syntax' , ( ) => {
100114 const localVue = createLocalVue ( )
101115 localVue . component ( 'Foo' , {
0 commit comments