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

fix test case

This commit is contained in:
Declan de Wet
2016-11-02 01:55:51 +02:00
parent 7d294e627f
commit cc6ebe0fd7
+17 -11
View File
@@ -3,17 +3,23 @@ import Meta from 'vue-meta'
Vue.use(Meta) Vue.use(Meta)
before(() => {
new Vue({
template: `
<div id="app">
</div>
`,
metaInfo: {
title: 'Foo'
}
}).$mount()
})
describe('basic', () => { describe('basic', () => {
it('sets the document title', () => { it('sets the document title', (done) => {
new Vue({ setTimeout(() => {
template: ` expect(document.title).to.equal('Foo')
<div id="app"> done()
</div> }, 100)
`,
metaInfo: {
title: 'Foo'
}
}).$mount()
expect(document.title).to.equal('Foo')
}) })
}) })