From 5be03f04b7176deb07a5dbd3c775ade087b32688 Mon Sep 17 00:00:00 2001 From: Sebastian Mihalache <sebi.mihalache@gmail.com> Date: Thu, 4 Oct 2018 15:02:16 +0300 Subject: [PATCH] fix(invite): change collection status in tests --- .../src/tests/collectionsInvitations/post.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/component-invite/src/tests/collectionsInvitations/post.test.js b/packages/component-invite/src/tests/collectionsInvitations/post.test.js index c2f730953..de48dc4f8 100644 --- a/packages/component-invite/src/tests/collectionsInvitations/post.test.js +++ b/packages/component-invite/src/tests/collectionsInvitations/post.test.js @@ -54,6 +54,7 @@ describe('Post collections invitations route handler', () => { it('should return success when the editor in chief invites a handlingEditor with a collection', async () => { const { user, editorInChief } = testFixtures.users const { collection } = testFixtures.collections + collection.status = 'submitted' body = { email: user.email, @@ -106,6 +107,8 @@ describe('Post collections invitations route handler', () => { it('should return success when the EiC resends an invitation to a handlingEditor with a collection', async () => { const { handlingEditor, editorInChief } = testFixtures.users const { collection } = testFixtures.collections + collection.status = 'submitted' + body = { email: handlingEditor.email, role: 'handlingEditor', @@ -128,6 +131,8 @@ describe('Post collections invitations route handler', () => { it('should return an error when the invitation is already answered', async () => { const { answerHE, editorInChief } = testFixtures.users const { collection } = testFixtures.collections + collection.status = 'submitted' + body = { email: answerHE.email, role: 'handlingEditor', -- GitLab