From 62e9b455a14591c8a46f0e841908c4a33c1f81d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Fontcuberta?= Date: Wed, 9 Dec 2020 22:32:16 +0100 Subject: [PATCH] chore: Cleanup examples --- src/__tests__/components/Button.vue | 3 ++- src/__tests__/components/Collapsible.vue | 2 +- src/__tests__/components/Form.vue | 3 +-- src/__tests__/components/FunctionalSFC.vue | 3 --- src/__tests__/components/Stubs.vue | 1 - src/__tests__/components/TextMatchers.vue | 3 --- src/__tests__/components/Vuetify.vue | 2 +- 7 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 src/__tests__/components/FunctionalSFC.vue delete mode 100644 src/__tests__/components/TextMatchers.vue diff --git a/src/__tests__/components/Button.vue b/src/__tests__/components/Button.vue index 4c825609..9c9aad3f 100644 --- a/src/__tests__/components/Button.vue +++ b/src/__tests__/components/Button.vue @@ -10,8 +10,9 @@ export default { default: 'Button Text', }, }, + emits: {click: null}, methods: { - handleClick(e) { + handleClick(_e) { this.$emit('click') }, }, diff --git a/src/__tests__/components/Collapsible.vue b/src/__tests__/components/Collapsible.vue index 33766853..120db8eb 100644 --- a/src/__tests__/components/Collapsible.vue +++ b/src/__tests__/components/Collapsible.vue @@ -15,7 +15,7 @@ export default { } }, methods: { - handleClick(e) { + handleClick(_) { this.displayElement = !this.displayElement }, }, diff --git a/src/__tests__/components/Form.vue b/src/__tests__/components/Form.vue index ffa729f2..73897cb2 100644 --- a/src/__tests__/components/Form.vue +++ b/src/__tests__/components/Form.vue @@ -41,6 +41,7 @@