2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-16 08:50:33 +03:00

Revert "fix: set ssr appId in mounted hook"

This reverts commit 2dd1697ead.
This commit is contained in:
pimlie
2019-06-09 13:54:15 +02:00
parent 2dd1697ead
commit b2a7a8449b
2 changed files with 9 additions and 15 deletions
+5 -13
View File
@@ -102,15 +102,12 @@ describe('client', () => {
test('doesnt update when ssr attribute is set', () => {
html.setAttribute(defaultOptions.ssrAttribute, 'true')
const wrapper = mount(HelloWorld, {
localVue: Vue,
attrs: {
'data-server-rendered': true
}
})
const wrapper = mount(HelloWorld, { localVue: Vue })
const { tags } = wrapper.vm.$meta().refresh()
expect(tags).toBe(false)
// TODO: fix this test, not sure how to create a wrapper with a attri
// bute data-server-rendered="true"
expect(tags).not.toBe(false)
})
test('changed function is called', async () => {
@@ -232,12 +229,7 @@ describe('client', () => {
}
})
const wrapper = mount(component, {
localVue: Vue,
attrs: {
'data-server-rendered': true
}
})
const wrapper = mount(component, { localVue: Vue })
expect(html.getAttribute('theme')).not.toBe('dark')
await vmTick(wrapper.vm)