more low-hanging fruits
This commit is contained in:
parent
4f82709bf2
commit
b2dca4a3f6
20 changed files with 45 additions and 45 deletions
|
|
@ -107,7 +107,7 @@ describe('Statuses module', () => {
|
|||
showImmediately: true,
|
||||
timeline: 'public',
|
||||
})
|
||||
expect(state.timelines.public.maxId).to.eql('1')
|
||||
expect(state.timelines.public.maxId).to.equal('1')
|
||||
|
||||
mutations.addNewStatuses(state, {
|
||||
statuses: [secondStatus],
|
||||
|
|
@ -120,7 +120,7 @@ describe('Statuses module', () => {
|
|||
secondStatus,
|
||||
status,
|
||||
])
|
||||
expect(state.timelines.public.maxId).to.eql('1')
|
||||
expect(state.timelines.public.maxId).to.equal('1')
|
||||
})
|
||||
|
||||
it('keeps a descending by id order in timeline.visibleStatuses and timeline.statuses', () => {
|
||||
|
|
@ -340,7 +340,7 @@ describe('Statuses module', () => {
|
|||
expect(state.allStatusesObject['1'].emoji_reactions[0].me).to.eql(true)
|
||||
expect(
|
||||
state.allStatusesObject['1'].emoji_reactions[0].accounts[0].id,
|
||||
).to.eql('me')
|
||||
).to.equal('me')
|
||||
})
|
||||
|
||||
it('adds a new reaction', () => {
|
||||
|
|
@ -362,7 +362,7 @@ describe('Statuses module', () => {
|
|||
expect(state.allStatusesObject['1'].emoji_reactions[0].me).to.eql(true)
|
||||
expect(
|
||||
state.allStatusesObject['1'].emoji_reactions[0].accounts[0].id,
|
||||
).to.eql('me')
|
||||
).to.equal('me')
|
||||
})
|
||||
|
||||
it('decreases count in existing reaction', () => {
|
||||
|
|
@ -429,8 +429,8 @@ describe('Statuses module', () => {
|
|||
mutations.showNewStatuses(state, { timeline: 'public' })
|
||||
|
||||
expect(state.timelines.public.visibleStatuses.length).to.eql(2)
|
||||
expect(state.timelines.public.minVisibleId).to.eql('10')
|
||||
expect(state.timelines.public.minId).to.eql('10')
|
||||
expect(state.timelines.public.minVisibleId).to.equal('10')
|
||||
expect(state.timelines.public.minId).to.equal('10')
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue