2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-11 20:02:25 +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)
before(() => {
new Vue({
template: `
<div id="app">
</div>
`,
metaInfo: {
title: 'Foo'
}
}).$mount()
})
describe('basic', () => {
it('sets the document title', () => {
new Vue({
template: `
<div id="app">
</div>
`,
metaInfo: {
title: 'Foo'
}
}).$mount()
expect(document.title).to.equal('Foo')
it('sets the document title', (done) => {
setTimeout(() => {
expect(document.title).to.equal('Foo')
done()
}, 100)
})
})