separate character limits for local and remote notes

This commit is contained in:
Hazel K 2024-10-07 21:03:31 -04:00 committed by Hazelnoot
parent 55df1ad10f
commit 560ee43dcf
19 changed files with 142 additions and 47 deletions

View file

@ -9,10 +9,12 @@ process.env.NODE_ENV = 'test';
import * as assert from 'assert';
import { MiNote } from '@/models/Note.js';
import { MAX_NOTE_TEXT_LENGTH } from '@/const.js';
import { api, castAsError, initTestDb, post, role, signup, uploadFile, uploadUrl } from '../utils.js';
import type * as misskey from 'misskey-js';
// TODO: these tests are probably wrong for depending on this, but that's a problem for later.
const MAX_NOTE_TEXT_LENGTH = 3000;
describe('Note', () => {
let Notes: Repository<MiNote>;