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