実際の文字数リミットと違ってたので対応

This commit is contained in:
rinsuki 2019-10-25 19:53:37 +09:00
parent 16171d6579
commit 7394de3ae3
1 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ describe('Note', () => {
it('文字数ぎりぎりで怒られない', async(async () => { it('文字数ぎりぎりで怒られない', async(async () => {
const post = { const post = {
text: '!'.repeat(500) text: '!'.repeat(1000)
}; };
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);
@ -158,7 +158,7 @@ describe('Note', () => {
it('文字数オーバーで怒られる', async(async () => { it('文字数オーバーで怒られる', async(async () => {
const post = { const post = {
text: '!'.repeat(501) text: '!'.repeat(1001)
}; };
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);