chore: テストがすでにコメントで記述されていたのでそっちを使うことにする

This commit is contained in:
zyoshoka 2024-01-11 22:20:18 +09:00
parent 3d58ca90ae
commit a4f47e46ac
No known key found for this signature in database
GPG key ID: 0C2CB8FBA309A5B8
2 changed files with 4 additions and 12 deletions

View file

@ -34,11 +34,10 @@ describe('api:notes/create', () => {
.toBe(VALID); .toBe(VALID);
}); });
// TODO test('null post', () => {
//test('null post', () => { expect(v({ text: null }))
// expect(v({ text: null })) .toBe(INVALID);
// .toBe(INVALID); });
//});
test('0 characters post', () => { test('0 characters post', () => {
expect(v({ text: '' })) expect(v({ text: '' }))

View file

@ -161,13 +161,6 @@ describe('Note', () => {
assert.strictEqual(deleteRes.status, 204); assert.strictEqual(deleteRes.status, 204);
}); });
test('text: nullのみだと怒られる', async () => {
const res = await api('/notes/create', {
text: null,
}, alice);
assert.strictEqual(res.status, 400);
});
test('文字数ぎりぎりで怒られない', async () => { test('文字数ぎりぎりで怒られない', async () => {
const post = { const post = {
text: '!'.repeat(MAX_NOTE_TEXT_LENGTH), // 3000文字 text: '!'.repeat(MAX_NOTE_TEXT_LENGTH), // 3000文字