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

chore: fix lint

This commit is contained in:
pimlie
2019-09-13 13:12:58 +02:00
committed by Pim
parent d9b0ab29da
commit b73b8ede03
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export default function updateAttribute (appId, { attribute } = {}, type, attrs,
tag.removeAttribute(attribute) tag.removeAttribute(attribute)
} }
let data = attributeMap[type] || {} const data = attributeMap[type] || {}
const toUpdate = [] const toUpdate = []
+1 -1
View File
@@ -45,6 +45,6 @@ export function createDOM (html = '<!DOCTYPE html>', options = {}) {
// this is ok because this code normally only runs on // this is ok because this code normally only runs on
// the client and not during ssr // the client and not during ssr
// TODO: findout why jest.resetModules doesnt work for this // TODO: findout why jest.resetModules doesnt work for this
export function clearClientAttributeMap() { export function clearClientAttributeMap () {
Object.keys(attributeMap).forEach(key => delete attributeMap[key]) Object.keys(attributeMap).forEach(key => delete attributeMap[key])
} }
+1 -1
View File
@@ -283,7 +283,7 @@ const metaInfoData = {
expect(attributeMap).toEqual({ bodyAttrs: { expect(attributeMap).toEqual({ bodyAttrs: {
foo: { ssr: 'bar' }, foo: { ssr: 'bar' },
fizz: { ssr: ['fuzz', 'fozz'] } fizz: { ssr: ['fuzz', 'fozz'] }
}}) } })
} }
} }
} }