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

begin testing getMetaInfo

This commit is contained in:
Declan de Wet
2016-11-05 08:32:27 +02:00
parent 8aec696ffa
commit 4c49c52c49
2 changed files with 57 additions and 13 deletions
+26
View File
@@ -0,0 +1,26 @@
import Vue from 'vue'
import getMetaInfo from '../src/shared/getMetaInfo'
describe('getMetaInfo', () => {
// const container = document.createElement('div')
let component
afterEach(() => component.$destroy())
it('returns appropriate defaults when no meta info is found', () => {
component = new Vue()
expect(getMetaInfo(component)).to.eql({
title: '',
titleChunk: '',
titleTemplate: '%s',
htmlAttrs: {},
bodyAttrs: {},
meta: [],
base: [],
link: [],
style: [],
script: [],
noscript: []
})
})
})