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:
Nutomic 2023-12-13 15:29:10 +01:00 committed by GitHub
parent 0b2df3980f
commit 01aa17f38e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

1
.gitignore vendored
View File

@ -20,7 +20,6 @@ query_testing/**/reports/*.json
api_tests/node_modules
api_tests/.yalc
api_tests/yalc.lock
api_tests/test.png
api_tests/pict-rs
# pictrs data

View File

@ -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);
});
test.only("moderator view", async () => {
test("moderator view", async () => {
// register a new user with their own community on alpha and post to it
let otherUser = await registerUser(alpha, alphaUrl);

View File

@ -863,6 +863,7 @@ export function getCommentParentId(comment: Comment): number | undefined {
if (split.length > 1) {
return Number(split[split.length - 2]);
} else {
console.log(`Failed to extract comment parent id from ${comment.path}`);
return undefined;
}
}