2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-20 07:50:34 +03:00

test: increase coverage, add missing tests

fix: issues discovered by adding missing tests
This commit is contained in:
pimlie
2019-03-08 22:13:21 +01:00
committed by Alexander Lichter
parent ce7eaf56d3
commit 5f8025e126
18 changed files with 494 additions and 112 deletions
+1 -18
View File
@@ -2,15 +2,7 @@ import { mount, createLocalVue } from '@vue/test-utils'
import { renderToString } from '@vue/server-test-utils'
import VueMetaBrowserPlugin from '../../src/browser'
import VueMetaServerPlugin from '../../src'
import {
keyName,
attribute,
ssrAttribute,
tagIDKeyName,
metaTemplateKeyName,
contentKeyName
} from '../../src/shared/constants'
import { defaultOptions } from './constants'
export {
mount,
@@ -19,15 +11,6 @@ export {
VueMetaServerPlugin
}
export const defaultOptions = {
keyName,
attribute,
ssrAttribute,
tagIDKeyName,
metaTemplateKeyName,
contentKeyName
}
export function getVue() {
return createLocalVue()
}
+1 -1
View File
@@ -1,4 +1,4 @@
import { defaultOptions } from './'
import { defaultOptions } from './constants'
const metaInfoData = {
title: {
-4
View File
@@ -1,5 +1 @@
import jsdom from 'jsdom-global'
jsdom()
jest.useFakeTimers()