mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-25 12:30: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)
|
||||
|
||||
describe('basic', () => {
|
||||
it('sets the document title', () => {
|
||||
before(() => {
|
||||
new Vue({
|
||||
template: `
|
||||
<div id="app">
|
||||
@@ -14,6 +13,13 @@ describe('basic', () => {
|
||||
title: 'Foo'
|
||||
}
|
||||
}).$mount()
|
||||
})
|
||||
|
||||
describe('basic', () => {
|
||||
it('sets the document title', (done) => {
|
||||
setTimeout(() => {
|
||||
expect(document.title).to.equal('Foo')
|
||||
done()
|
||||
}, 100)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user