test(backend): refactor tests (#13499)
* test(backend): refactor tests * fix: failed test
This commit is contained in:
parent
efda2e9baa
commit
38837bd388
24 changed files with 1270 additions and 1297 deletions
|
|
@ -22,7 +22,7 @@ describe('Renote Mute', () => {
|
|||
}, 1000 * 60 * 2);
|
||||
|
||||
test('ミュート作成', async () => {
|
||||
const res = await api('/renote-mute/create', {
|
||||
const res = await api('renote-mute/create', {
|
||||
userId: carol.id,
|
||||
}, alice);
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ describe('Renote Mute', () => {
|
|||
// redisに追加されるのを待つ
|
||||
await sleep(100);
|
||||
|
||||
const res = await api('/notes/local-timeline', {}, alice);
|
||||
const res = await api('notes/local-timeline', {}, alice);
|
||||
|
||||
assert.strictEqual(res.status, 200);
|
||||
assert.strictEqual(Array.isArray(res.body), true);
|
||||
|
|
@ -54,7 +54,7 @@ describe('Renote Mute', () => {
|
|||
// redisに追加されるのを待つ
|
||||
await sleep(100);
|
||||
|
||||
const res = await api('/notes/local-timeline', {}, alice);
|
||||
const res = await api('notes/local-timeline', {}, alice);
|
||||
|
||||
assert.strictEqual(res.status, 200);
|
||||
assert.strictEqual(Array.isArray(res.body), true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue