mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-05-26 14:14:05 +03:00
20 lines
325 B
JavaScript
20 lines
325 B
JavaScript
import Vue from 'vue'
|
|
import Meta from 'vue-meta'
|
|
|
|
Vue.use(Meta)
|
|
|
|
describe('basic', () => {
|
|
it('sets the document title', () => {
|
|
new Vue({
|
|
template: `
|
|
<div id="app">
|
|
</div>
|
|
`,
|
|
metaInfo: {
|
|
title: 'Foo'
|
|
}
|
|
}).$mount()
|
|
expect(document.title).to.equal('Foo')
|
|
})
|
|
})
|