Skip to content
Snippets Groups Projects
Commit 7f226f7e authored by Sebastian's avatar Sebastian
Browse files

feat(component-invite): add test for assignedPeople

parent 4e885f4f
No related branches found
No related tags found
No related merge requests found
...@@ -179,6 +179,7 @@ describe('Post invite route handler', () => { ...@@ -179,6 +179,7 @@ describe('Post invite route handler', () => {
const data = JSON.parse(res._getData()) const data = JSON.parse(res._getData())
expect(data.email).toEqual(body.email) expect(data.email).toEqual(body.email)
expect(data.invitations[0].collectionId).toEqual(req.params.collectionId) 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 () => { it('should return success when the handlingEditor invites a reviewer with a collection', async () => {
const body = { const body = {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment