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:
committed by
Alexander Lichter
parent
ce7eaf56d3
commit
5f8025e126
+1
-18
@@ -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,4 +1,4 @@
|
||||
import { defaultOptions } from './'
|
||||
import { defaultOptions } from './constants'
|
||||
|
||||
const metaInfoData = {
|
||||
title: {
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
import jsdom from 'jsdom-global'
|
||||
|
||||
jsdom()
|
||||
|
||||
jest.useFakeTimers()
|
||||
|
||||
Reference in New Issue
Block a user