fix: backend note test (文字数オーバー)

This commit is contained in:
こけっち 2022-08-12 04:31:09 +09:00
parent 15a8ec6e45
commit 62cfc4ce13
No known key found for this signature in database
GPG Key ID: 21460619C5FC4DD1

View File

@ -138,7 +138,7 @@ describe('Note', () => {
it('文字数ぎりぎりで怒られない', async(async () => {
const post = {
text: '!'.repeat(3000),
text: '!'.repeat(8192),
};
const res = await request('/notes/create', post, alice);
assert.strictEqual(res.status, 200);
@ -146,7 +146,7 @@ describe('Note', () => {
it('文字数オーバーで怒られる', async(async () => {
const post = {
text: '!'.repeat(3001),
text: '!'.repeat(8193),
};
const res = await request('/notes/create', post, alice);
assert.strictEqual(res.status, 400);