mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-30 11:34:05 +03:00
26 lines
380 B
JavaScript
26 lines
380 B
JavaScript
import Vue from 'vue'
|
|
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', (done) => {
|
|
setTimeout(() => {
|
|
expect(document.title).to.equal('Foo')
|
|
done()
|
|
}, 100)
|
|
})
|
|
})
|