diff --git a/packages/component-invite/src/tests/postInvite.test.js b/packages/component-invite/src/tests/postInvite.test.js index 23612de26242e7355af9d1ce286b4adaed942933..e350f5c33c485da065b6d4e029e9aa59fd06ad3c 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 = {