refs #843 Fix code style for mentions

This commit is contained in:
AkiraFukushima 2019-03-19 09:29:25 +09:00
parent efc41b283b
commit 8414e22b96
3 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,7 @@ let state = () => {
}
}
const initStore =() => {
const initStore = () => {
return {
namespaced: true,
state: state(),
@ -69,7 +69,7 @@ describe('Mentions', () => {
}
Mastodon.mockImplementation(() => mockClient)
const mentions = await store.dispatch('Mentions/fetchMentions')
await store.dispatch('Mentions/fetchMentions')
expect(store.state.Mentions.mentions).toEqual([
{ id: 1, type: 'mention' },
{ id: 2, type: 'favourite' },
@ -80,7 +80,7 @@ describe('Mentions', () => {
})
describe('lazyFetchMentions', () => {
describe('last is null', () => {
describe('last is null', () => {
it('should not be updated', async () => {
const result = await store.dispatch('Mentions/lazyFetchMentions', null)
expect(result).toEqual(null)
@ -137,7 +137,7 @@ describe('Mentions', () => {
}
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([
{ id: 1, type: 'mention' },
{ id: 2, type: 'favourite' },

View File

@ -76,7 +76,7 @@ describe('TimelineSpace/Contents/Mentions', () => {
}
})
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])
})
})

View File

@ -203,7 +203,7 @@ export default {
right: 24px;
top: 48px;
background-color: rgba(0, 0, 0, 0.7);
color: #ffffff;
color: #fff;
padding: 4px 8px;
border-radius: 0 0 2px 2px;