Skip to content
Snippets Groups Projects
Commit 5be03f04 authored by Sebastian Mihalache's avatar Sebastian Mihalache :hammer_pick:
Browse files

fix(invite): change collection status in tests

parent ba75e09c
No related branches found
No related tags found
2 merge requests!110Sprint 21 Features,!66Hin 1020
...@@ -54,6 +54,7 @@ describe('Post collections invitations route handler', () => { ...@@ -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 () => { it('should return success when the editor in chief invites a handlingEditor with a collection', async () => {
const { user, editorInChief } = testFixtures.users const { user, editorInChief } = testFixtures.users
const { collection } = testFixtures.collections const { collection } = testFixtures.collections
collection.status = 'submitted'
body = { body = {
email: user.email, email: user.email,
...@@ -106,6 +107,8 @@ describe('Post collections invitations route handler', () => { ...@@ -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 () => { it('should return success when the EiC resends an invitation to a handlingEditor with a collection', async () => {
const { handlingEditor, editorInChief } = testFixtures.users const { handlingEditor, editorInChief } = testFixtures.users
const { collection } = testFixtures.collections const { collection } = testFixtures.collections
collection.status = 'submitted'
body = { body = {
email: handlingEditor.email, email: handlingEditor.email,
role: 'handlingEditor', role: 'handlingEditor',
...@@ -128,6 +131,8 @@ describe('Post collections invitations route handler', () => { ...@@ -128,6 +131,8 @@ describe('Post collections invitations route handler', () => {
it('should return an error when the invitation is already answered', async () => { it('should return an error when the invitation is already answered', async () => {
const { answerHE, editorInChief } = testFixtures.users const { answerHE, editorInChief } = testFixtures.users
const { collection } = testFixtures.collections const { collection } = testFixtures.collections
collection.status = 'submitted'
body = { body = {
email: answerHE.email, email: answerHE.email,
role: 'handlingEditor', role: 'handlingEditor',
......
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