2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-05-30 17:34:05 +03:00
Files
vue-meta/test/getMetaInfo.spec.js
T
Declan de Wet 814a0dd2c3 fix tests
2016-11-10 17:47:54 +02:00

29 lines
622 B
JavaScript

import Vue from 'vue'
import _getMetaInfo from '../src/shared/getMetaInfo'
const getMetaInfo = _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: []
})
})
})