diff --git a/test/api/v3/integration/chat/POST-chat.test.js b/test/api/v3/integration/chat/POST-chat.test.js index ed2ecbdc05..10e8e80bc3 100644 --- a/test/api/v3/integration/chat/POST-chat.test.js +++ b/test/api/v3/integration/chat/POST-chat.test.js @@ -7,13 +7,12 @@ import { server, } from '../../../../helpers/api-integration/v3'; import { - SPAM_MESSAGE_LIMIT, SPAM_MIN_EXEMPT_CONTRIB_LEVEL, } from '../../../../../website/server/models/group'; import { MAX_MESSAGE_LENGTH } from '../../../../../website/common/script/constants'; import * as email from '../../../../../website/server/libs/email'; -describe.only('POST /chat', () => { +describe('POST /chat', () => { let user; let groupWithChat; let member; let additionalMember; const testMessage = 'Test Message'; @@ -257,7 +256,7 @@ describe.only('POST /chat', () => { expect(groupMessages[0].text.length).to.eql(MAX_MESSAGE_LENGTH); }); - /* it('chat message with mentions - mention link should not count towards 3000 chars limit', async () => { + it('chat message with mentions - mention link should not count towards 3000 chars limit', async () => { const memberUsername = 'memberUsername'; await member.update({ 'auth.local.username': memberUsername }); @@ -273,7 +272,7 @@ describe.only('POST /chat', () => { expect(newMessage.message.text.length) .to.eql(messageWithMentions.length - (`@${memberUsername}`).length + mentionLink.length); expect(groupMessages[0].text.length).to.eql(newMessage.message.text.length); - }); */ + }); it('creates a chat with user styles', async () => { const mount = 'test-mount'; diff --git a/test/api/v3/integration/chat/POST-groups_id_chat_id_clear_flags.test.js b/test/api/v3/integration/chat/POST-groups_id_chat_id_clear_flags.test.js index 5b6fbbad65..13513cda1e 100644 --- a/test/api/v3/integration/chat/POST-groups_id_chat_id_clear_flags.test.js +++ b/test/api/v3/integration/chat/POST-groups_id_chat_id_clear_flags.test.js @@ -24,7 +24,7 @@ describe('POST /groups/:id/chat/:id/clearflags', () => { upgradeToGroupPlan: true, members: 2, }); - + groupWithChat = group; author = groupLeader; [nonAdmin, admin] = members; diff --git a/test/api/v4/user/auth/POST-register_local.test.js b/test/api/v4/user/auth/POST-register_local.test.js index 919b650e25..11836cd213 100644 --- a/test/api/v4/user/auth/POST-register_local.test.js +++ b/test/api/v4/user/auth/POST-register_local.test.js @@ -665,6 +665,7 @@ describe('POST /user/auth/local/register', () => { it('adds a user to a guild on an invite of type other than party', async () => { const { group, groupLeader } = await createAndPopulateGroup({ groupDetails: { type: 'guild', privacy: 'private' }, + upgradeToGroupPlan: true, }); const invite = encrypt(JSON.stringify({