From 7f226f7e99a5e3a44539d2396c1bbe77d55b21ec Mon Sep 17 00:00:00 2001
From: Sebastian <sebastian.mihalache@thinslices.com>
Date: Fri, 23 Mar 2018 15:10:51 +0200
Subject: [PATCH] feat(component-invite): add test for assignedPeople

---
 packages/component-invite/src/tests/postInvite.test.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/packages/component-invite/src/tests/postInvite.test.js b/packages/component-invite/src/tests/postInvite.test.js
index 23612de26..e350f5c33 100644
--- a/packages/component-invite/src/tests/postInvite.test.js
+++ b/packages/component-invite/src/tests/postInvite.test.js
@@ -179,6 +179,7 @@ describe('Post invite route handler', () => {
     const data = JSON.parse(res._getData())
     expect(data.email).toEqual(body.email)
     expect(data.invitations[0].collectionId).toEqual(req.params.collectionId)
+    expect(standardCollection.assignedPeople).toHaveLength(1)
   })
   it('should return success when the handlingEditor invites a reviewer with a collection', async () => {
     const body = {
-- 
GitLab