forked from AkkomaGang/akkoma-fe
update test for clearTimeline action
This commit is contained in:
parent
b70c2bfef7
commit
d8e210df4d
1 changed files with 2 additions and 2 deletions
|
@ -258,11 +258,11 @@ describe('Statuses module', () => {
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('clearTimeline', () => {
|
describe('clearTimeline', () => {
|
||||||
it('keeps userId when clearing user timeline', () => {
|
it('keeps userId when clearing user timeline when excludeUserId param is true', () => {
|
||||||
const state = defaultState()
|
const state = defaultState()
|
||||||
state.timelines.user.userId = 123
|
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)
|
expect(state.timelines.user.userId).to.eql(123)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue