mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
fix(lint): whoops only
This commit is contained in:
@@ -7,13 +7,12 @@ import {
|
|||||||
server,
|
server,
|
||||||
} from '../../../../helpers/api-integration/v3';
|
} from '../../../../helpers/api-integration/v3';
|
||||||
import {
|
import {
|
||||||
SPAM_MESSAGE_LIMIT,
|
|
||||||
SPAM_MIN_EXEMPT_CONTRIB_LEVEL,
|
SPAM_MIN_EXEMPT_CONTRIB_LEVEL,
|
||||||
} from '../../../../../website/server/models/group';
|
} from '../../../../../website/server/models/group';
|
||||||
import { MAX_MESSAGE_LENGTH } from '../../../../../website/common/script/constants';
|
import { MAX_MESSAGE_LENGTH } from '../../../../../website/common/script/constants';
|
||||||
import * as email from '../../../../../website/server/libs/email';
|
import * as email from '../../../../../website/server/libs/email';
|
||||||
|
|
||||||
describe.only('POST /chat', () => {
|
describe('POST /chat', () => {
|
||||||
let user; let groupWithChat; let member; let
|
let user; let groupWithChat; let member; let
|
||||||
additionalMember;
|
additionalMember;
|
||||||
const testMessage = 'Test Message';
|
const testMessage = 'Test Message';
|
||||||
@@ -257,7 +256,7 @@ describe.only('POST /chat', () => {
|
|||||||
expect(groupMessages[0].text.length).to.eql(MAX_MESSAGE_LENGTH);
|
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';
|
const memberUsername = 'memberUsername';
|
||||||
await member.update({ 'auth.local.username': memberUsername });
|
await member.update({ 'auth.local.username': memberUsername });
|
||||||
|
|
||||||
@@ -273,7 +272,7 @@ describe.only('POST /chat', () => {
|
|||||||
expect(newMessage.message.text.length)
|
expect(newMessage.message.text.length)
|
||||||
.to.eql(messageWithMentions.length - (`@${memberUsername}`).length + mentionLink.length);
|
.to.eql(messageWithMentions.length - (`@${memberUsername}`).length + mentionLink.length);
|
||||||
expect(groupMessages[0].text.length).to.eql(newMessage.message.text.length);
|
expect(groupMessages[0].text.length).to.eql(newMessage.message.text.length);
|
||||||
}); */
|
});
|
||||||
|
|
||||||
it('creates a chat with user styles', async () => {
|
it('creates a chat with user styles', async () => {
|
||||||
const mount = 'test-mount';
|
const mount = 'test-mount';
|
||||||
|
|||||||
@@ -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 () => {
|
it('adds a user to a guild on an invite of type other than party', async () => {
|
||||||
const { group, groupLeader } = await createAndPopulateGroup({
|
const { group, groupLeader } = await createAndPopulateGroup({
|
||||||
groupDetails: { type: 'guild', privacy: 'private' },
|
groupDetails: { type: 'guild', privacy: 'private' },
|
||||||
|
upgradeToGroupPlan: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const invite = encrypt(JSON.stringify({
|
const invite = encrypt(JSON.stringify({
|
||||||
|
|||||||
Reference in New Issue
Block a user