mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 12:20:21 +01:00
Test: Remove needless test
This commit is contained in:
parent
648cfa8b8a
commit
1a347ae9a0
1 changed files with 0 additions and 18 deletions
18
test/api.ts
18
test/api.ts
|
@ -669,24 +669,6 @@ describe('API', () => {
|
||||||
res.should.have.status(204);
|
res.should.have.status(204);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('過去にフォロー歴があった状態でフォロー解除できる', async(async () => {
|
|
||||||
const hima = await insertHimawari();
|
|
||||||
const me = await insertSakurako();
|
|
||||||
await db.get('following').insert({
|
|
||||||
followeeId: hima._id,
|
|
||||||
followerId: me._id,
|
|
||||||
deletedAt: new Date()
|
|
||||||
});
|
|
||||||
await db.get('following').insert({
|
|
||||||
followeeId: hima._id,
|
|
||||||
followerId: me._id
|
|
||||||
});
|
|
||||||
const res = await request('/following/delete', {
|
|
||||||
userId: hima._id.toString()
|
|
||||||
}, me);
|
|
||||||
res.should.have.status(204);
|
|
||||||
}));
|
|
||||||
|
|
||||||
it('フォローしていない場合は怒る', async(async () => {
|
it('フォローしていない場合は怒る', async(async () => {
|
||||||
const hima = await insertHimawari();
|
const hima = await insertHimawari();
|
||||||
const me = await insertSakurako();
|
const me = await insertSakurako();
|
||||||
|
|
Loading…
Reference in a new issue