Skip to content
Snippets Groups Projects

Hin 1160 eic cannot invite

Merged Mihail Hagiu requested to merge HIN-1160-eic-cannot-invite into develop
3 files
+ 9
9
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -59,11 +59,11 @@ describe('Delete Fragments Invitations route handler', () => {
)
})
it('should return an error when the invitation does not exist', async () => {
const { editorInChief } = testFixtures.users
const { handlingEditor } = testFixtures.users
const { collection } = testFixtures.collections
const { fragment } = testFixtures.fragments
const res = await requests.sendRequest({
userId: editorInChief.id,
userId: handlingEditor.id,
route,
models,
path,
@@ -78,11 +78,11 @@ describe('Delete Fragments Invitations route handler', () => {
expect(data.error).toEqual('Invitation invalid-id not found')
})
it('should return success when the collection and invitation exist', async () => {
const { editorInChief } = testFixtures.users
const { handlingEditor } = testFixtures.users
const { collection } = testFixtures.collections
const { fragment } = testFixtures.fragments
const res = await requests.sendRequest({
userId: editorInChief.id,
userId: handlingEditor.id,
route,
models,
path,