From bde12418433f3ae9d2ad3781343f334caf58cc95 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Wed, 8 Mar 2017 17:58:49 +0100 Subject: [PATCH] eslint fixes. --- src/components/conversation/conversation.js | 2 +- test/unit/specs/modules/statuses.spec.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index 769893d3..281b0183 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -49,7 +49,7 @@ const conversation = { } }, focused: function (id) { - if (!!this.statusoid.retweeted_status) { + if (this.statusoid.retweeted_status) { return (id === this.statusoid.retweeted_status.id) } else { return (id === this.statusoid.id) diff --git a/test/unit/specs/modules/statuses.spec.js b/test/unit/specs/modules/statuses.spec.js index b1581e03..891423ca 100644 --- a/test/unit/specs/modules/statuses.spec.js +++ b/test/unit/specs/modules/statuses.spec.js @@ -1,6 +1,7 @@ import { cloneDeep } from 'lodash' import { defaultState, mutations, findMaxId, prepareStatus, statusType } from '../../../../src/modules/statuses.js' +// eslint-disable-next-line camelcase const makeMockStatus = ({id, text, is_post_verb = true}) => { return { id,