aboutsummaryrefslogtreecommitdiff
path: root/test/unit/specs
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2016-11-18 16:05:04 +0100
committerRoger Braun <roger@rogerbraun.net>2016-11-18 16:05:04 +0100
commit8723c35d4305a4ff5d01dee8707c1cc25b405cd2 (patch)
tree2fb9b5a18f6408505f9e3ed8ffb6d818f03c981c /test/unit/specs
parent4fcb60487cbe034d12d42852354c7522033dc23c (diff)
A bit more advanced status merging.
Diffstat (limited to 'test/unit/specs')
-rw-r--r--test/unit/specs/modules/statuses.spec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/specs/modules/statuses.spec.js b/test/unit/specs/modules/statuses.spec.js
index 02013039..0370d4ae 100644
--- a/test/unit/specs/modules/statuses.spec.js
+++ b/test/unit/specs/modules/statuses.spec.js
@@ -86,11 +86,11 @@ describe('The Statuses module', () => {
// It adds both statuses, but only the retweet to visible.
mutations.addNewStatuses(state, { statuses: [retweet], timeline: 'public', showImmediately: true })
expect(state.timelines.public.visibleStatuses).to.have.length(1)
- expect(state.allStatuses).to.eql([status, retweet])
+ expect(state.allStatuses).to.eql([retweet, status])
// It refers to the modified status.
mutations.addNewStatuses(state, { statuses: [modStatus], timeline: 'public' })
- expect(state.allStatuses).to.eql([modStatus, retweet])
+ expect(state.allStatuses).to.eql([retweet, modStatus])
expect(retweet.retweeted_status).to.eql(modStatus)
})
@@ -127,7 +127,7 @@ describe('The Statuses module', () => {
mutations.addNewStatuses(state, { statuses: [retweet], showImmediately: false, timeline: 'public' })
expect(state.timelines.public.visibleStatuses).to.have.length(1)
expect(state.allStatuses).to.have.length(2)
- expect(state.allStatuses[0]).to.equal(modStatus)
+ expect(state.allStatuses[0]).to.eql(modStatus)
})
it('handles favorite actions', () => {