diff options
| author | lambda <pleromagit@rogerbraun.net> | 2019-01-28 18:52:47 +0000 |
|---|---|---|
| committer | lambda <pleromagit@rogerbraun.net> | 2019-01-28 18:52:47 +0000 |
| commit | d367ca9290ce9d4ae391424cf4b5eb1d8007c79a (patch) | |
| tree | f88e9b7bb8c7429eede3d063be7e5d292706df67 /test/unit/specs/modules/statuses.spec.js | |
| parent | b0b6ebee17b7e5098f7299695380bc838e3af797 (diff) | |
| parent | ca78623b348a3ef83c02e451b0b553b431a06551 (diff) | |
Merge branch 'fix/user-timeline-again' into 'develop'
Fix user TL getting stuck again
See merge request pleroma/pleroma-fe!487
Diffstat (limited to 'test/unit/specs/modules/statuses.spec.js')
| -rw-r--r-- | test/unit/specs/modules/statuses.spec.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/unit/specs/modules/statuses.spec.js b/test/unit/specs/modules/statuses.spec.js index 33628b9b..01d2ce06 100644 --- a/test/unit/specs/modules/statuses.spec.js +++ b/test/unit/specs/modules/statuses.spec.js @@ -240,6 +240,15 @@ describe('The Statuses module', () => { expect(state.timelines.public.visibleStatuses[0].favorited).to.eql(true) }) + it('keeps userId when clearing user timeline', () => { + const state = cloneDeep(defaultState) + state.timelines.user.userId = 123 + + mutations.clearTimeline(state, { timeline: 'user' }) + + expect(state.timelines.user.userId).to.eql(123) + }) + describe('notifications', () => { it('removes a notification when the notice gets removed', () => { const user = { id: '1' } |
