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

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

View File

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