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