refs #843 Fix code style for mentions
This commit is contained in:
parent
efc41b283b
commit
8414e22b96
|
@ -16,7 +16,7 @@ let state = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const initStore =() => {
|
const initStore = () => {
|
||||||
return {
|
return {
|
||||||
namespaced: true,
|
namespaced: true,
|
||||||
state: state(),
|
state: state(),
|
||||||
|
@ -69,7 +69,7 @@ describe('Mentions', () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
Mastodon.mockImplementation(() => mockClient)
|
Mastodon.mockImplementation(() => mockClient)
|
||||||
const mentions = await store.dispatch('Mentions/fetchMentions')
|
await store.dispatch('Mentions/fetchMentions')
|
||||||
expect(store.state.Mentions.mentions).toEqual([
|
expect(store.state.Mentions.mentions).toEqual([
|
||||||
{ id: 1, type: 'mention' },
|
{ id: 1, type: 'mention' },
|
||||||
{ id: 2, type: 'favourite' },
|
{ id: 2, type: 'favourite' },
|
||||||
|
@ -137,7 +137,7 @@ describe('Mentions', () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
Mastodon.mockImplementation(() => mockClient)
|
Mastodon.mockImplementation(() => mockClient)
|
||||||
const mentions = await store.dispatch('Mentions/lazyFetchMentions', { id: 1 })
|
await store.dispatch('Mentions/lazyFetchMentions', { id: 1 })
|
||||||
expect(store.state.Mentions.mentions).toEqual([
|
expect(store.state.Mentions.mentions).toEqual([
|
||||||
{ id: 1, type: 'mention' },
|
{ id: 1, type: 'mention' },
|
||||||
{ id: 2, type: 'favourite' },
|
{ id: 2, type: 'favourite' },
|
||||||
|
|
|
@ -76,7 +76,7 @@ describe('TimelineSpace/Contents/Mentions', () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
it('should be inserted', () => {
|
it('should be inserted', () => {
|
||||||
Mentions.mutations.insertMentions(state, [ -1, -2, -3, -4])
|
Mentions.mutations.insertMentions(state, [-1, -2, -3, -4])
|
||||||
expect(state.mentions).toEqual([5, 4, 3, 2, 1, -1, -2, -3, -4])
|
expect(state.mentions).toEqual([5, 4, 3, 2, 1, -1, -2, -3, -4])
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -203,7 +203,7 @@ export default {
|
||||||
right: 24px;
|
right: 24px;
|
||||||
top: 48px;
|
top: 48px;
|
||||||
background-color: rgba(0, 0, 0, 0.7);
|
background-color: rgba(0, 0, 0, 0.7);
|
||||||
color: #ffffff;
|
color: #fff;
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
border-radius: 0 0 2px 2px;
|
border-radius: 0 0 2px 2px;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue