Skip to content

Commit

Permalink
fix: remove incorrect test (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
38elements authored and eddyerburgh committed Jul 23, 2018
1 parent 1ff0540 commit e9374b8
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/specs/mounting-options/slots.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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().default, 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',
Expand Down

0 comments on commit e9374b8

Please # to comment.