From eb37f4a2859414c988c4012eac427c64518cbd00 Mon Sep 17 00:00:00 2001 From: Yuichiro Yamashita Date: Sun, 17 Apr 2022 02:16:15 +0900 Subject: [PATCH] [chore] fix lint (#7466) --- .../samples/dynamic-element-animation-2/_config.js | 2 +- test/runtime/samples/if-block-else-update/_config.js | 8 ++++---- test/runtime/samples/inline-style/_config.js | 2 +- test/runtime/samples/key-block-component-slot/_config.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/runtime/samples/dynamic-element-animation-2/_config.js b/test/runtime/samples/dynamic-element-animation-2/_config.js index 27b28bb349..d7dec05009 100644 --- a/test/runtime/samples/dynamic-element-animation-2/_config.js +++ b/test/runtime/samples/dynamic-element-animation-2/_config.js @@ -59,7 +59,7 @@ export default { originalParagraphGetBoundingClientRect; }, - async test({ assert, component, target, raf }) { + async test({ assert, component, raf }) { // switch tag and things at the same time await component.update('p', [ { id: 5, name: 'e' }, diff --git a/test/runtime/samples/if-block-else-update/_config.js b/test/runtime/samples/if-block-else-update/_config.js index db35ca8488..c653b6bbd1 100644 --- a/test/runtime/samples/if-block-else-update/_config.js +++ b/test/runtime/samples/if-block-else-update/_config.js @@ -1,7 +1,7 @@ export default { - async test({ assert, component, target, window }) { + async test({ assert, target, window }) { const [btn1, btn2] = target.querySelectorAll('button'); - + const clickEvent = new window.MouseEvent('click'); await btn2.dispatchEvent(clickEvent); @@ -23,7 +23,7 @@ export default {
foo! `); - + await btn2.dispatchEvent(clickEvent); assert.htmlEqual(target.innerHTML, ` @@ -33,7 +33,7 @@ export default {
foo! `); - + await btn1.dispatchEvent(clickEvent); assert.htmlEqual(target.innerHTML, ` diff --git a/test/runtime/samples/inline-style/_config.js b/test/runtime/samples/inline-style/_config.js index 192659346c..aae0dafa74 100644 --- a/test/runtime/samples/inline-style/_config.js +++ b/test/runtime/samples/inline-style/_config.js @@ -3,7 +3,7 @@ export default {
`, - test({ assert, component, target, window }) { + test({ assert, target, window }) { const div = target.querySelector('div'); const styles = window.getComputedStyle(div); diff --git a/test/runtime/samples/key-block-component-slot/_config.js b/test/runtime/samples/key-block-component-slot/_config.js index 8fbbeaec64..d08ff11af9 100644 --- a/test/runtime/samples/key-block-component-slot/_config.js +++ b/test/runtime/samples/key-block-component-slot/_config.js @@ -5,7 +5,7 @@ export default { props: { logs }, - async test({ assert, component, target, raf }) { + async test({ assert, target }) { assert.deepEqual(logs, ['mount']); const button = target.querySelector('button');