changed the only surviving and important test to accommodate for new notifications flow.
This commit is contained in:
parent
3afe65352b
commit
cc473df314
|
@ -301,8 +301,28 @@ describe('The Statuses module', () => {
|
||||||
deletion.uri = 'xxx'
|
deletion.uri = 'xxx'
|
||||||
|
|
||||||
mutations.addNewStatuses(state, { statuses: [status, otherStatus], user })
|
mutations.addNewStatuses(state, { statuses: [status, otherStatus], user })
|
||||||
|
mutations.addNewNotifications(
|
||||||
|
state,
|
||||||
|
{
|
||||||
|
notifications: [{
|
||||||
|
ntype: 'mention',
|
||||||
|
status: otherStatus,
|
||||||
|
notice: otherStatus,
|
||||||
|
is_seen: false
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
expect(state.notifications.data.length).to.eql(1)
|
expect(state.notifications.data.length).to.eql(1)
|
||||||
|
mutations.addNewNotifications(
|
||||||
|
state,
|
||||||
|
{
|
||||||
|
notifications: [{
|
||||||
|
ntype: 'mention',
|
||||||
|
status: mentionedStatus,
|
||||||
|
notice: mentionedStatus,
|
||||||
|
is_seen: false
|
||||||
|
}]
|
||||||
|
})
|
||||||
|
|
||||||
mutations.addNewStatuses(state, { statuses: [mentionedStatus], user })
|
mutations.addNewStatuses(state, { statuses: [mentionedStatus], user })
|
||||||
expect(state.allStatuses.length).to.eql(3)
|
expect(state.allStatuses.length).to.eql(3)
|
||||||
|
|
Loading…
Reference in New Issue