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

feat: use named exports to export helper functions

This commit is contained in:
pimlie
2019-03-05 14:06:21 +01:00
parent 9c80dab7b2
commit 95c3b7d4e8
4 changed files with 16 additions and 13 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
import { mount, defaultOptions, hasMetaInfo, VueMetaServerPlugin, loadVueMetaPlugin } from './utils'
import { mount, defaultOptions, VueMetaServerPlugin, loadVueMetaPlugin } from './utils'
const { hasMetaInfo } = VueMetaServerPlugin
jest.mock('../package.json', () => ({
version: 'test-version'
+2 -3
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 * as VueMetaBrowserPlugin from '../../src/browser'
import * as VueMetaServerPlugin from '../../src'
import {
keyName,
@@ -15,7 +15,6 @@ import {
export {
mount,
renderToString,
hasMetaInfo,
VueMetaBrowserPlugin,
VueMetaServerPlugin
}