1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-23 16:05:09 +01:00

update test for clearTimeline action

This commit is contained in:
taehoon 2019-07-02 15:07:18 -04:00
parent b70c2bfef7
commit d8e210df4d

View File

@ -258,11 +258,11 @@ describe('Statuses module', () => {
})
describe('clearTimeline', () => {
it('keeps userId when clearing user timeline', () => {
it('keeps userId when clearing user timeline when excludeUserId param is true', () => {
const state = defaultState()
state.timelines.user.userId = 123
mutations.clearTimeline(state, { timeline: 'user' })
mutations.clearTimeline(state, { timeline: 'user', excludeUserId: true })
expect(state.timelines.user.userId).to.eql(123)
})