2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-20 18:40:33 +03:00

chore: fix lint

This commit is contained in:
pimlie
2019-07-11 21:43:05 +02:00
parent 1d9072a3af
commit 56f6577e25
40 changed files with 105 additions and 107 deletions
+13 -13
View File
@@ -110,7 +110,7 @@ describe('client', () => {
const Component = Vue.extend({
metaInfo: { title: 'Test' },
render(h) {
render (h) {
return h('div', null, 'Test')
}
})
@@ -157,10 +157,10 @@ describe('client', () => {
localVue: Vue,
mocks: {
$router: {
beforeEach(fn) {
beforeEach (fn) {
guards.before = fn
},
afterEach(fn) {
afterEach (fn) {
guards.after = fn
}
}
@@ -192,10 +192,10 @@ describe('client', () => {
localVue: Vue,
mocks: {
$router: {
beforeEach(fn) {
beforeEach (fn) {
guards.before = fn
},
afterEach(fn) {
afterEach (fn) {
guards.after = fn
}
}
@@ -225,21 +225,21 @@ describe('client', () => {
// this component uses a computed prop to simulate a non-synchronous
// metaInfo update like you would have with a Vuex mutation
const Component = Vue.extend({
data() {
data () {
return {
hiddenTheme: 'light'
}
},
computed: {
theme() {
theme () {
return this.hiddenTheme
}
},
beforeMount() {
beforeMount () {
this.hiddenTheme = 'dark'
},
render: h => h('div'),
metaInfo() {
metaInfo () {
return {
htmlAttrs: {
theme: this.theme
@@ -270,21 +270,21 @@ describe('client', () => {
document.body.appendChild(el)
const Component = Vue.extend({
data() {
data () {
return {
hiddenTheme: 'light'
}
},
computed: {
theme() {
theme () {
return this.hiddenTheme
}
},
mounted() {
mounted () {
this.hiddenTheme = 'dark'
},
render: h => h('div'),
metaInfo() {
metaInfo () {
return {
htmlAttrs: {
theme: this.theme