2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-16 01:50:33 +03:00

feat: export hasMetaInfo helper function

This commit is contained in:
pimlie
2019-03-05 14:17:28 +01:00
parent f597f61104
commit 173b31d1d7
5 changed files with 19 additions and 16 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { mount, defaultOptions, hasMetaInfo, VueMetaServerPlugin, loadVueMetaPlugin } from './utils'
import { mount, defaultOptions, VueMetaServerPlugin, loadVueMetaPlugin } from './utils'
jest.mock('../package.json', () => ({
version: 'test-version'
@@ -64,7 +64,7 @@ describe('plugin', () => {
const { vm } = mount(Component, { localVue: Vue })
expect(hasMetaInfo(vm)).toBe(true)
expect(VueMetaServerPlugin.hasMetaInfo(vm)).toBe(true)
expect(warn).not.toHaveBeenCalled()
warn.mockRestore()
+1 -2
View File
@@ -1,7 +1,7 @@
import { mount, createLocalVue } from '@vue/test-utils'
import { renderToString } from '@vue/server-test-utils'
import VueMetaBrowserPlugin from '../../src/browser'
import VueMetaServerPlugin, { hasMetaInfo } from '../../src'
import VueMetaServerPlugin from '../../src'
import {
keyName,
@@ -15,7 +15,6 @@ import {
export {
mount,
renderToString,
hasMetaInfo,
VueMetaBrowserPlugin,
VueMetaServerPlugin
}