mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-25 03:20:33 +03:00
fix test case
This commit is contained in:
+8
-2
@@ -3,8 +3,7 @@ import Meta from 'vue-meta'
|
|||||||
|
|
||||||
Vue.use(Meta)
|
Vue.use(Meta)
|
||||||
|
|
||||||
describe('basic', () => {
|
before(() => {
|
||||||
it('sets the document title', () => {
|
|
||||||
new Vue({
|
new Vue({
|
||||||
template: `
|
template: `
|
||||||
<div id="app">
|
<div id="app">
|
||||||
@@ -14,6 +13,13 @@ describe('basic', () => {
|
|||||||
title: 'Foo'
|
title: 'Foo'
|
||||||
}
|
}
|
||||||
}).$mount()
|
}).$mount()
|
||||||
|
})
|
||||||
|
|
||||||
|
describe('basic', () => {
|
||||||
|
it('sets the document title', (done) => {
|
||||||
|
setTimeout(() => {
|
||||||
expect(document.title).to.equal('Foo')
|
expect(document.title).to.equal('Foo')
|
||||||
|
done()
|
||||||
|
}, 100)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user