diff options
| author | Henry Jameson <me@hjkos.com> | 2018-08-16 14:46:05 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-08-16 14:46:05 +0300 |
| commit | cc473df314ed44f0a4f6085508af3e5291e7fc11 (patch) | |
| tree | a3cf7de617671bd55946b40a8b3eedc2c1f30dbe /test/unit/specs/modules/statuses.spec.js | |
| parent | 3afe65352b4cd57153b12cb024076f2b76f465df (diff) | |
changed the only surviving and important test to accommodate for new notifications flow.
Diffstat (limited to 'test/unit/specs/modules/statuses.spec.js')
| -rw-r--r-- | test/unit/specs/modules/statuses.spec.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/unit/specs/modules/statuses.spec.js b/test/unit/specs/modules/statuses.spec.js index ecc7dc50..ba459b38 100644 --- a/test/unit/specs/modules/statuses.spec.js +++ b/test/unit/specs/modules/statuses.spec.js @@ -301,8 +301,28 @@ describe('The Statuses module', () => { deletion.uri = 'xxx' 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) + mutations.addNewNotifications( + state, + { + notifications: [{ + ntype: 'mention', + status: mentionedStatus, + notice: mentionedStatus, + is_seen: false + }] + }) mutations.addNewStatuses(state, { statuses: [mentionedStatus], user }) expect(state.allStatuses.length).to.eql(3) |
