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

fix tests

This commit is contained in:
Declan de Wet
2016-11-10 17:47:54 +02:00
parent d218afa2e6
commit 814a0dd2c3
12 changed files with 25 additions and 12 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import titleGenerator from './generators/titleGenerator'
import attrsGenerator from './generators/attrsGenerator'
import tagGenerator from './generators/tagGenerator'
export default function _generateServerInjector (options) {
export default function _generateServerInjector (options = {}) {
/**
* Converts a meta info property to one that can be stringified on the server
*
+3 -1
View File
@@ -1,4 +1,6 @@
export default function _attrsGenerator ({ attribute }) {
export default function _attrsGenerator (options = {}) {
const { attribute } = options
/**
* Generates tag attributes for use on the server.
*
+3 -1
View File
@@ -1,4 +1,6 @@
export default function _tagGenerator ({ attribute }) {
export default function _tagGenerator (options = {}) {
const { attribute } = options
/**
* Generates meta, base, link, style, script, noscript tags for use on the server
*
+3 -1
View File
@@ -1,4 +1,6 @@
export default function _titleGenerator ({ attribute }) {
export default function _titleGenerator (options = {}) {
const { attribute } = options
/**
* Generates title output for the server
*
+1 -1
View File
@@ -1,7 +1,7 @@
import getMetaInfo from '../shared/getMetaInfo'
import generateServerInjector from './generateServerInjector'
export default function _inject (options) {
export default function _inject (options = {}) {
/**
* Converts the state of the meta info object such that each item
* can be compiled to a tag string on the server