mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-20 06:40:33 +03:00
fix: dont change title when value is undefined (fix #396)
This commit is contained in:
@@ -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: {},
|
||||
|
||||
Reference in New Issue
Block a user