2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-17 04:30:33 +03:00

fix broken tests

This commit is contained in:
Declan de Wet
2016-11-10 15:37:36 +02:00
parent 495f61629a
commit 6502c13793
+4 -4
View File
@@ -9,13 +9,13 @@ describe('getComponentOption', () => {
it('returns an empty object when no matching options are found', () => {
component = new Vue()
const { mergedOption } = getComponentOption({ component, option: 'noop' })
const mergedOption = getComponentOption({ component, option: 'noop' })
expect(mergedOption).to.eql({})
})
it('fetches the given option from the given component', () => {
component = new Vue({ someOption: 'foo' })
const { mergedOption } = getComponentOption({ component, option: 'someOption' })
const mergedOption = getComponentOption({ component, option: 'someOption' })
expect(mergedOption).to.eql('foo')
})
@@ -28,7 +28,7 @@ describe('getComponentOption', () => {
el: container
})
const { mergedOption } = getComponentOption({ component, option: 'foo', deep: true })
const mergedOption = getComponentOption({ component, option: 'foo', deep: true })
expect(mergedOption).to.eql({ bar: 'baz', fizz: 'buzz' })
})
@@ -48,7 +48,7 @@ describe('getComponentOption', () => {
el: container
})
const { mergedOption } = getComponentOption({
const mergedOption = getComponentOption({
component,
option: 'foo',
deep: true,