From b73b8ede03c9e3b18eb8ad676c97c1080a283198 Mon Sep 17 00:00:00 2001 From: pimlie Date: Fri, 13 Sep 2019 13:12:58 +0200 Subject: [PATCH] chore: fix lint --- src/client/updaters/attribute.js | 2 +- test/utils/index.js | 2 +- test/utils/meta-info-data.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/updaters/attribute.js b/src/client/updaters/attribute.js index e40c29b..19fa3b4 100644 --- a/src/client/updaters/attribute.js +++ b/src/client/updaters/attribute.js @@ -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 = [] diff --git a/test/utils/index.js b/test/utils/index.js index d123d3f..d6d58a4 100644 --- a/test/utils/index.js +++ b/test/utils/index.js @@ -45,6 +45,6 @@ export function createDOM (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]) } diff --git a/test/utils/meta-info-data.js b/test/utils/meta-info-data.js index 96234c9..10bffb6 100644 --- a/test/utils/meta-info-data.js +++ b/test/utils/meta-info-data.js @@ -283,7 +283,7 @@ const metaInfoData = { expect(attributeMap).toEqual({ bodyAttrs: { foo: { ssr: 'bar' }, fizz: { ssr: ['fuzz', 'fozz'] } - }}) + } }) } } }