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

remove basic spec

This commit is contained in:
Declan de Wet
2016-11-05 06:57:34 +02:00
parent bc36f4cc4b
commit 88b6d11188
-29
View File
@@ -1,29 +0,0 @@
import Vue from 'vue'
import Meta from 'vue-meta'
import { Promise } from 'es6-promise'
Vue.use(Meta)
describe('basic', () => {
const container = document.createElement('div')
let vm
function setMetaInfo (metaInfo) {
return new Promise((resolve) => {
metaInfo = Vue.util.extend(metaInfo, { changed: resolve })
vm = new Vue({ el: container, metaInfo })
})
}
afterEach(() => vm.$destroy())
it('sets a title', () => setMetaInfo({ title: 'Foo' })
.then(() => expect(document.title).to.equal('Foo')))
it('sets a title with a template', () => setMetaInfo({
title: 'Foo',
titleTemplate: '%s Bar'
})
.then(() => expect(document.title).to.equal('Foo Bar')))
})