mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-01 17:51:54 +01:00
chore: テストがすでにコメントで記述されていたのでそっちを使うことにする
This commit is contained in:
parent
3d58ca90ae
commit
a4f47e46ac
2 changed files with 4 additions and 12 deletions
|
@ -34,11 +34,10 @@ describe('api:notes/create', () => {
|
|||
.toBe(VALID);
|
||||
});
|
||||
|
||||
// TODO
|
||||
//test('null post', () => {
|
||||
// expect(v({ text: null }))
|
||||
// .toBe(INVALID);
|
||||
//});
|
||||
test('null post', () => {
|
||||
expect(v({ text: null }))
|
||||
.toBe(INVALID);
|
||||
});
|
||||
|
||||
test('0 characters post', () => {
|
||||
expect(v({ text: '' }))
|
||||
|
|
|
@ -161,13 +161,6 @@ describe('Note', () => {
|
|||
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 () => {
|
||||
const post = {
|
||||
text: '!'.repeat(MAX_NOTE_TEXT_LENGTH), // 3000文字
|
||||
|
|
Loading…
Reference in a new issue