From b9305feb1c869ebcc7fc953c44628e10414efc6e Mon Sep 17 00:00:00 2001 From: 38elements Date: Mon, 23 Jul 2018 07:31:13 +0900 Subject: [PATCH 1/2] fix: test --- test/specs/mounting-options/slots.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/specs/mounting-options/slots.spec.js b/test/specs/mounting-options/slots.spec.js index 1c77c69d4..7b529fbf5 100644 --- a/test/specs/mounting-options/slots.spec.js +++ b/test/specs/mounting-options/slots.spec.js @@ -241,7 +241,7 @@ describeWithMountingMethods('options.slots', mountingMethod => { const TestComponent = { name: 'component-with-slots', functional: true, - render: (h, ctx) => h('div', ctx.data, [ctx.slots().default, ctx.slots().footer]) + render: (h, ctx) => h('div', ctx.data, [ctx.slots().footer]) } const wrapper = mountingMethod(TestComponent, { slots: { From 6fcc3f61ba37538a87153147d5fcb27085d35478 Mon Sep 17 00:00:00 2001 From: 38elements Date: Mon, 23 Jul 2018 07:43:03 +0900 Subject: [PATCH 2/2] remove test --- test/specs/mounting-options/slots.spec.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/test/specs/mounting-options/slots.spec.js b/test/specs/mounting-options/slots.spec.js index 7b529fbf5..8b085c285 100644 --- a/test/specs/mounting-options/slots.spec.js +++ b/test/specs/mounting-options/slots.spec.js @@ -237,24 +237,6 @@ describeWithMountingMethods('options.slots', mountingMethod => { } }) - it('mounts functional component with only named text slot', () => { - const TestComponent = { - name: 'component-with-slots', - functional: true, - render: (h, ctx) => h('div', ctx.data, [ctx.slots().footer]) - } - const wrapper = mountingMethod(TestComponent, { - slots: { - footer: 'foo' - } - }) - if (mountingMethod.name === 'renderToString') { - expect(wrapper).contains('foo') - } else { - expect(wrapper.text()).to.equal('foo') - } - }) - it('mounts functional component with text slot', () => { const TestComponent = { name: 'component-with-slots',