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:
@@ -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')))
|
||||
})
|
||||
Reference in New Issue
Block a user