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

fix: dont change title when value is undefined (fix #396)

This commit is contained in:
pimlie
2019-06-22 16:15:49 +02:00
parent 4ca3050112
commit 90f9710f26
5 changed files with 21 additions and 10 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ describe('client', () => {
jest.runAllTimers()
metaInfo = getMetaInfo(wrapper.vm.$parent)
expect(metaInfo.title).toEqual('')
expect(metaInfo.title).toEqual(undefined)
})
test('meta-info can be rendered with inject', () => {
+3 -3
View File
@@ -13,7 +13,7 @@ describe('getMetaInfo', () => {
const component = new Vue()
expect(getMetaInfo(component)).toEqual({
title: '',
title: undefined,
titleChunk: '',
titleTemplate: '%s',
htmlAttrs: {},
@@ -654,7 +654,7 @@ describe('getMetaInfo', () => {
})
expect(getMetaInfo(component)).toEqual({
title: '',
title: undefined,
titleChunk: '',
titleTemplate: '%s',
htmlAttrs: {},
@@ -802,7 +802,7 @@ describe('getMetaInfo', () => {
})
expect(getMetaInfo(component)).toEqual({
title: '',
title: undefined,
titleChunk: '',
titleTemplate: '%s',
htmlAttrs: {},