mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-24 21:43:05 +00:00
Reenable API tests that were accidentally skipped (#4259)
* Reenable API tests that were accidentally skipped * log get comment parent id failure
This commit is contained in:
parent
0b2df3980f
commit
01aa17f38e
3 changed files with 2 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -20,7 +20,6 @@ query_testing/**/reports/*.json
|
||||||
api_tests/node_modules
|
api_tests/node_modules
|
||||||
api_tests/.yalc
|
api_tests/.yalc
|
||||||
api_tests/yalc.lock
|
api_tests/yalc.lock
|
||||||
api_tests/test.png
|
|
||||||
api_tests/pict-rs
|
api_tests/pict-rs
|
||||||
|
|
||||||
# pictrs data
|
# pictrs data
|
||||||
|
|
|
@ -249,7 +249,7 @@ test("Admin actions in remote community are not federated to origin", async () =
|
||||||
expect(gammaPost2.post_view.creator_banned_from_community).toBe(false);
|
expect(gammaPost2.post_view.creator_banned_from_community).toBe(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
test.only("moderator view", async () => {
|
test("moderator view", async () => {
|
||||||
// register a new user with their own community on alpha and post to it
|
// register a new user with their own community on alpha and post to it
|
||||||
let otherUser = await registerUser(alpha, alphaUrl);
|
let otherUser = await registerUser(alpha, alphaUrl);
|
||||||
|
|
||||||
|
|
|
@ -863,6 +863,7 @@ export function getCommentParentId(comment: Comment): number | undefined {
|
||||||
if (split.length > 1) {
|
if (split.length > 1) {
|
||||||
return Number(split[split.length - 2]);
|
return Number(split[split.length - 2]);
|
||||||
} else {
|
} else {
|
||||||
|
console.log(`Failed to extract comment parent id from ${comment.path}`);
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue