diff --git a/spec/renderer/integration/store/TimelineSpace/Contents/Notifications.spec.ts b/spec/renderer/integration/store/TimelineSpace/Contents/Notifications.spec.ts index f83e0bd1..7855e398 100644 --- a/spec/renderer/integration/store/TimelineSpace/Contents/Notifications.spec.ts +++ b/spec/renderer/integration/store/TimelineSpace/Contents/Notifications.spec.ts @@ -192,8 +192,7 @@ let state = (): NotificationsState => { return { lazyLoading: false, heading: true, - notifications: [], - unreadNotifications: [] + notifications: [] } } @@ -253,8 +252,7 @@ describe('Notifications', () => { return { lazyLoading: false, heading: true, - notifications: [notification1], - unreadNotifications: [] + notifications: [notification1] } } }) diff --git a/spec/renderer/unit/store/TimelineSpace/Contents/Home.spec.ts b/spec/renderer/unit/store/TimelineSpace/Contents/Home.spec.ts index 48a8ae84..3e736ab5 100644 --- a/spec/renderer/unit/store/TimelineSpace/Contents/Home.spec.ts +++ b/spec/renderer/unit/store/TimelineSpace/Contents/Home.spec.ts @@ -179,7 +179,7 @@ describe('TimelineSpace/Contents/Home', () => { showReplies: true } }) - it('should not update unreadTimeline', () => { + it('should not update timeline', () => { Home.mutations![MUTATION_TYPES.APPEND_TIMELINE](state, status2) expect(state.timeline).toEqual([status2, status1]) }) diff --git a/spec/renderer/unit/store/TimelineSpace/Contents/Notifications.spec.ts b/spec/renderer/unit/store/TimelineSpace/Contents/Notifications.spec.ts index 3bf79ccc..b4a41731 100644 --- a/spec/renderer/unit/store/TimelineSpace/Contents/Notifications.spec.ts +++ b/spec/renderer/unit/store/TimelineSpace/Contents/Notifications.spec.ts @@ -175,8 +175,7 @@ describe('TimelineSpace/Contents/Notifications', () => { state = { lazyLoading: false, heading: true, - notifications: [notification2, notification1], - unreadNotifications: [] + notifications: [notification2, notification1] } }) describe('message is not reblogged', () => { @@ -200,14 +199,12 @@ describe('TimelineSpace/Contents/Notifications', () => { state = { lazyLoading: false, heading: true, - notifications: [notification1], - unreadNotifications: [] + notifications: [notification1] } }) it('should update timeline', () => { Notifications.mutations![MUTATION_TYPES.APPEND_NOTIFICATIONS](state, notification2) expect(state.notifications).toEqual([notification2, notification1]) - expect(state.unreadNotifications).toEqual([]) }) }) @@ -216,14 +213,12 @@ describe('TimelineSpace/Contents/Notifications', () => { state = { lazyLoading: false, heading: true, - notifications: [notification2, notification1], - unreadNotifications: [] + notifications: [notification2, notification1] } }) it('should not update timeline', () => { Notifications.mutations![MUTATION_TYPES.APPEND_NOTIFICATIONS](state, notification2) expect(state.notifications).toEqual([notification2, notification1]) - expect(state.unreadNotifications).toEqual([]) }) }) }) @@ -234,14 +229,12 @@ describe('TimelineSpace/Contents/Notifications', () => { state = { lazyLoading: false, heading: false, - notifications: [notification1], - unreadNotifications: [] + notifications: [notification1] } }) - it('should update unreadTimeline', () => { + it('should update timeline', () => { Notifications.mutations![MUTATION_TYPES.APPEND_NOTIFICATIONS](state, notification2) - expect(state.notifications).toEqual([notification1]) - expect(state.unreadNotifications).toEqual([notification2]) + expect(state.notifications).toEqual([notification2, notification1]) }) }) describe('duplicated status', () => { @@ -249,14 +242,12 @@ describe('TimelineSpace/Contents/Notifications', () => { state = { lazyLoading: false, heading: false, - notifications: [notification1], - unreadNotifications: [notification2] + notifications: [notification2, notification1] } }) - it('should not update unreadTimeline', () => { + it('should not update timeline', () => { Notifications.mutations![MUTATION_TYPES.APPEND_NOTIFICATIONS](state, notification2) - expect(state.notifications).toEqual([notification1]) - expect(state.unreadNotifications).toEqual([notification2]) + expect(state.notifications).toEqual([notification2, notification1]) }) }) }) diff --git a/src/renderer/components/TimelineSpace/Contents/Notifications.vue b/src/renderer/components/TimelineSpace/Contents/Notifications.vue index 80c59f1c..bc1e8327 100644 --- a/src/renderer/components/TimelineSpace/Contents/Notifications.vue +++ b/src/renderer/components/TimelineSpace/Contents/Notifications.vue @@ -1,6 +1,5 @@