diff --git a/test/basic.spec.js b/test/basic.spec.js
index 07f161b..982acbb 100644
--- a/test/basic.spec.js
+++ b/test/basic.spec.js
@@ -3,17 +3,23 @@ import Meta from 'vue-meta'
Vue.use(Meta)
+before(() => {
+ new Vue({
+ template: `
+
+
+ `,
+ metaInfo: {
+ title: 'Foo'
+ }
+ }).$mount()
+})
+
describe('basic', () => {
- it('sets the document title', () => {
- new Vue({
- template: `
-
-
- `,
- 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)
})
})