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

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
1 changed files with 1 additions and 6 deletions

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);