2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-19 05:10:33 +03:00

feat: support generating tags directly from metaInfo object

This commit is contained in:
pimlie
2019-07-28 16:13:58 +02:00
committed by Pim
parent 931c0c4e88
commit cb2758eb0f
17 changed files with 128 additions and 70 deletions
+2 -1
View File
@@ -1,3 +1,4 @@
import { getComponentMetaInfo } from '../../src/shared/getComponentOption'
import _getMetaInfo from '../../src/shared/getMetaInfo'
import { mount, createWrapper, loadVueMetaPlugin, vmTick } from '../utils'
import { defaultOptions } from '../../src/shared/constants'
@@ -7,7 +8,7 @@ import HelloWorld from '../components/hello-world.vue'
import KeepAlive from '../components/keep-alive.vue'
import Changed from '../components/changed.vue'
const getMetaInfo = component => _getMetaInfo(defaultOptions, component)
const getMetaInfo = component => _getMetaInfo(defaultOptions, getComponentMetaInfo(defaultOptions, component))
jest.mock('../../src/utils/window', () => ({
hasGlobalWindow: false