mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-21 17:50:34 +03:00
chore: fix lint
This commit is contained in:
@@ -18,7 +18,7 @@ export default function updateAttribute (appId, { attribute } = {}, type, attrs,
|
||||
tag.removeAttribute(attribute)
|
||||
}
|
||||
|
||||
let data = attributeMap[type] || {}
|
||||
const data = attributeMap[type] || {}
|
||||
|
||||
const toUpdate = []
|
||||
|
||||
|
||||
+1
-1
@@ -45,6 +45,6 @@ export function createDOM (html = '<!DOCTYPE html>', options = {}) {
|
||||
// this is ok because this code normally only runs on
|
||||
// the client and not during ssr
|
||||
// TODO: findout why jest.resetModules doesnt work for this
|
||||
export function clearClientAttributeMap() {
|
||||
export function clearClientAttributeMap () {
|
||||
Object.keys(attributeMap).forEach(key => delete attributeMap[key])
|
||||
}
|
||||
|
||||
@@ -283,7 +283,7 @@ const metaInfoData = {
|
||||
expect(attributeMap).toEqual({ bodyAttrs: {
|
||||
foo: { ssr: 'bar' },
|
||||
fizz: { ssr: ['fuzz', 'fozz'] }
|
||||
}})
|
||||
} })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user