lint fix
This commit is contained in:
parent
4177de913d
commit
f0d05b7560
|
@ -1,9 +1,9 @@
|
||||||
import times from 'lodash/times'
|
import times from 'lodash/times'
|
||||||
|
|
||||||
function unrollThread(user, prefix, privacy, thread) {
|
function unrollThread (user, prefix, privacy, thread) {
|
||||||
let res = []
|
let res = []
|
||||||
|
|
||||||
function unroll(node, parentKey) {
|
function unroll (node, parentKey) {
|
||||||
if (!node) {
|
if (!node) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -284,7 +284,7 @@ export const actions = times(30, i => ({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
].concat(unrollThread('baz', 'bazthread-', 'unlisted', {
|
].concat(unrollThread('baz', 'bazthread-', 'unlisted', {
|
||||||
'thread 1' : {
|
'thread 1': {
|
||||||
'thread 2': {
|
'thread 2': {
|
||||||
'thread 2a': null,
|
'thread 2a': null,
|
||||||
'thread 2b': {
|
'thread 2b': {
|
||||||
|
@ -322,5 +322,5 @@ export const actions = times(30, i => ({
|
||||||
text: 'thread 2b2a',
|
text: 'thread 2b2a',
|
||||||
inReplyTo: 'bazthread-thread 2b2'
|
inReplyTo: 'bazthread-thread 2b2'
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
]))
|
]))
|
||||||
|
|
|
@ -7,7 +7,7 @@ const notifyOffline = debounce(() => {
|
||||||
toast.say('You seem to be offline. You can still read toots while offline.')
|
toast.say('You seem to be offline. You can still read toots while offline.')
|
||||||
}, OFFLINE_DELAY)
|
}, OFFLINE_DELAY)
|
||||||
|
|
||||||
export function onlineObservers(store) {
|
export function onlineObservers (store) {
|
||||||
if (!process.browser) {
|
if (!process.browser) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,5 +85,5 @@ export const bazThreadRelativeTo2 = [
|
||||||
{content: 'thread 2b1'},
|
{content: 'thread 2b1'},
|
||||||
{content: 'thread 2b2'},
|
{content: 'thread 2b2'},
|
||||||
{content: 'thread 2b2a'},
|
{content: 'thread 2b2a'},
|
||||||
{content: 'thread 2c'},
|
{content: 'thread 2c'}
|
||||||
]
|
]
|
|
@ -39,7 +39,7 @@ test('Scrolls to proper point in thread', async t => {
|
||||||
.eql(Math.round($('.container').boundingClientRect.top))
|
.eql(Math.round($('.container').boundingClientRect.top))
|
||||||
})
|
})
|
||||||
|
|
||||||
async function navigateToBazAccount(t) {
|
async function navigateToBazAccount (t) {
|
||||||
await t.click(searchNavButton)
|
await t.click(searchNavButton)
|
||||||
.expect(getUrl()).contains('/search')
|
.expect(getUrl()).contains('/search')
|
||||||
.typeText(searchInput, 'baz', {paste: true})
|
.typeText(searchInput, 'baz', {paste: true})
|
||||||
|
@ -48,7 +48,7 @@ async function navigateToBazAccount(t) {
|
||||||
.expect(getUrl()).contains('/accounts/5')
|
.expect(getUrl()).contains('/accounts/5')
|
||||||
}
|
}
|
||||||
|
|
||||||
async function validateForkedThread(t) {
|
async function validateForkedThread (t) {
|
||||||
await t.hover(getNthStatus(1))
|
await t.hover(getNthStatus(1))
|
||||||
.click(getNthStatus(2))
|
.click(getNthStatus(2))
|
||||||
.expect(getUrl()).contains('/statuses')
|
.expect(getUrl()).contains('/statuses')
|
||||||
|
|
Loading…
Reference in a new issue