forked from FoundKeyGang/FoundKey
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:
parent
d8c2cc2ef0
commit
5a4e300552
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue