From 240e774889116544ae4d85dc0f9ed4341b1a6ba5 Mon Sep 17 00:00:00 2001 From: 14nrv Date: Sat, 3 Oct 2020 17:54:08 +0200 Subject: [PATCH] fix: lint --- src/components/Questions.spec.js | 4 ++-- src/components/Questions.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Questions.spec.js b/src/components/Questions.spec.js index 486d993..55d7881 100644 --- a/src/components/Questions.spec.js +++ b/src/components/Questions.spec.js @@ -68,7 +68,7 @@ describe('Questions', () => { }) describe('toEmit', () => { - const eventName = 'isEditing' + const eventName = 'is-editing' const selector = '.edit' const action = () => trigger(selector) @@ -76,7 +76,7 @@ describe('Questions', () => { }) describe('toEmitWith', () => { - const eventName = 'isEditing' + const eventName = 'is-editing' const eventValue = 40 const selector = '.edit' diff --git a/src/components/Questions.vue b/src/components/Questions.vue index 4612327..6b7c3d1 100644 --- a/src/components/Questions.vue +++ b/src/components/Questions.vue @@ -40,7 +40,7 @@ export default { }, methods: { edit () { - this.$emit('isEditing', 40) + this.$emit('is-editing', 40) this.editing = true }, fireObject () {