tests: fix visibility tests

removed a duplicate test and fixed another that i messed up when
updating tests for the changed visibility
This commit is contained in:
Johann150 2023-05-07 23:38:29 +02:00
parent d8c2cc2ef0
commit 5a4e300552
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -165,7 +165,7 @@ describe('API visibility', () => {
// specified // specified
it('[show] specified post can be seen by author', async(async () => { it('[show] specified post can be seen by author', async(async () => {
const res = await show(spe.id, alice); const res = await show(spe.id, alice);
assert.strictEqual(res.status, 404); assert.strictEqual(res.body.text, 'x');
})); }));
it('[show] specified post can be seen by designated user', async(async () => { it('[show] specified post can be seen by designated user', async(async () => {
@ -279,11 +279,6 @@ describe('API visibility', () => {
assert.strictEqual(res.body.text, 'x'); assert.strictEqual(res.body.text, 'x');
})); }));
it('[show] specified-replyをされた人が指定されてなくても見れる', async(async () => {
const res = await show(speR.id, target);
assert.strictEqual(res.body.text, 'x');
}));
it('[show] specified reply is hidden from follower', async(async () => { it('[show] specified reply is hidden from follower', async(async () => {
const res = await show(speR.id, follower); const res = await show(speR.id, follower);
assert.strictEqual(res.status, 404); assert.strictEqual(res.status, 404);