Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions __tests__/posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3627,7 +3627,7 @@ describe('mutation createPostInMultipleSources', () => {

it('should throw error when content exceeds maximum length', async () => {
loggedUser = '1';
const longContent = 'a'.repeat(10001); // exceeds 10000 character limit
const longContent = 'a'.repeat(20001); // exceeds 20000 character limit
return testMutationErrorCode(
client,
{
Expand Down Expand Up @@ -5716,11 +5716,11 @@ describe('mutation createFreeformPost', () => {
);
});

it('should return an error if content exceeds 10000 characters', async () => {
it('should return an error if content exceeds 20000 characters', async () => {
loggedUser = '1';

const content = 'Hello World! Start your squad journey here'; // 42 chars
const sample = new Array(240).fill(content); // 42*240 = 10_080
const sample = new Array(480).fill(content); // 42*480 = 20_160

return testMutationErrorCode(
client,
Expand Down Expand Up @@ -7167,11 +7167,11 @@ describe('mutation editPost', () => {
);
});

it('should return an error if content exceeds 10000 characters', async () => {
it('should return an error if content exceeds 20000 characters', async () => {
loggedUser = '1';

const content = 'Hello World! Start your squad journey here'; // 42 chars
const sample = new Array(240).fill(content); // 42*240 = 10_080
const sample = new Array(480).fill(content); // 42*480 = 20_160

return testMutationErrorCode(
client,
Expand Down
Loading