parent
e12369ac13
commit
32c5c43b6d
3 changed files with 5 additions and 6 deletions
|
@ -663,7 +663,7 @@ describe('Note', () => {
|
|||
assert.strictEqual(note2.body.error.code, 'CONTAINS_PROHIBITED_WORDS');
|
||||
});
|
||||
|
||||
test('禁止ワードを含んでいてもリモートノートはエラーにならない', async () => {
|
||||
test('禁止ワードを含んでるリモートノートもエラーになる', async () => {
|
||||
const prohibited = await api('admin/update-meta', {
|
||||
prohibitedWords: [
|
||||
'test',
|
||||
|
@ -678,7 +678,7 @@ describe('Note', () => {
|
|||
text: 'hogetesthuge',
|
||||
}, tom);
|
||||
|
||||
assert.strictEqual(note1.status, 200);
|
||||
assert.strictEqual(note1.status, 400);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue