From f0d05b7560d99341b89dc0059511dfcb49e01491 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Thu, 8 Mar 2018 18:09:35 -0800 Subject: [PATCH] lint fix --- bin/mastodon-data.js | 8 ++++---- routes/_store/observers/onlineObservers.js | 4 ++-- tests/fixtures.js | 4 ++-- tests/spec/009-threads.js | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/mastodon-data.js b/bin/mastodon-data.js index 6d47265a..a1c8f3aa 100644 --- a/bin/mastodon-data.js +++ b/bin/mastodon-data.js @@ -1,9 +1,9 @@ import times from 'lodash/times' -function unrollThread(user, prefix, privacy, thread) { +function unrollThread (user, prefix, privacy, thread) { let res = [] - function unroll(node, parentKey) { + function unroll (node, parentKey) { if (!node) { return } @@ -284,7 +284,7 @@ export const actions = times(30, i => ({ } } ].concat(unrollThread('baz', 'bazthread-', 'unlisted', { - 'thread 1' : { + 'thread 1': { 'thread 2': { 'thread 2a': null, 'thread 2b': { @@ -322,5 +322,5 @@ export const actions = times(30, i => ({ text: 'thread 2b2a', inReplyTo: 'bazthread-thread 2b2' } - }, + } ])) diff --git a/routes/_store/observers/onlineObservers.js b/routes/_store/observers/onlineObservers.js index c246485b..b2f3b270 100644 --- a/routes/_store/observers/onlineObservers.js +++ b/routes/_store/observers/onlineObservers.js @@ -7,7 +7,7 @@ const notifyOffline = debounce(() => { toast.say('You seem to be offline. You can still read toots while offline.') }, OFFLINE_DELAY) -export function onlineObservers(store) { +export function onlineObservers (store) { if (!process.browser) { return } @@ -30,4 +30,4 @@ export function onlineObservers(store) { window.addEventListener('offline', () => store.set({online: false})) window.addEventListener('online', () => store.set({online: true})) -} \ No newline at end of file +} diff --git a/tests/fixtures.js b/tests/fixtures.js index db5603b6..0b727ace 100644 --- a/tests/fixtures.js +++ b/tests/fixtures.js @@ -85,5 +85,5 @@ export const bazThreadRelativeTo2 = [ {content: 'thread 2b1'}, {content: 'thread 2b2'}, {content: 'thread 2b2a'}, - {content: 'thread 2c'}, -] \ No newline at end of file + {content: 'thread 2c'} +] diff --git a/tests/spec/009-threads.js b/tests/spec/009-threads.js index 4ae66189..8cb2b6c4 100644 --- a/tests/spec/009-threads.js +++ b/tests/spec/009-threads.js @@ -39,7 +39,7 @@ test('Scrolls to proper point in thread', async t => { .eql(Math.round($('.container').boundingClientRect.top)) }) -async function navigateToBazAccount(t) { +async function navigateToBazAccount (t) { await t.click(searchNavButton) .expect(getUrl()).contains('/search') .typeText(searchInput, 'baz', {paste: true}) @@ -48,7 +48,7 @@ async function navigateToBazAccount(t) { .expect(getUrl()).contains('/accounts/5') } -async function validateForkedThread(t) { +async function validateForkedThread (t) { await t.hover(getNthStatus(1)) .click(getNthStatus(2)) .expect(getUrl()).contains('/statuses') @@ -79,4 +79,4 @@ test('Forked threads look correct online and offline', async t => { await forceOffline() await validateForkedThread(t) await forceOnline() -}) \ No newline at end of file +})