tests: fix visibility tests
Some checks failed
ci/woodpecker/push/lint-sw Pipeline is pending
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/push/test unknown status
ci/woodpecker/push/lint-foundkey-js Pipeline failed
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/lint-backend Pipeline failed

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: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -165,7 +165,7 @@ describe('API visibility', () => {
// specified
it('[show] specified post can be seen by author', async(async () => {
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 () => {
@ -279,11 +279,6 @@ describe('API visibility', () => {
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 () => {
const res = await show(speR.id, follower);
assert.strictEqual(res.status, 404);