mediawiki-extensions-Discus.../tests/cases/authors.json
Ed Sanders 79a62f539d ThreadItem: Add display names to getAuthorsBelow
Change-Id: I4195f982d7071fea0d0334908535639a11cdcae9
2023-02-23 23:03:35 +00:00

78 lines
1.2 KiB
JSON

[
{
"thread": {
"type": "heading",
"id": "Heading1",
"replies": [
{
"type": "comment",
"id": "Eve1",
"author": "Eve",
"replies": [
{
"type": "comment",
"id": "Bob1",
"author": "Bob",
"displayName": "Bobby",
"replies": []
}
]
},
{
"type": "comment",
"author": "Bob",
"displayName": "Robert",
"id": "Bob2",
"replies": [
{
"type": "comment",
"id": "Alice1",
"author": "Alice",
"replies": [
{
"type": "comment",
"id": "Bob3",
"author": "Bob",
"displayName": "Bobby",
"replies": []
}
]
},
{
"type": "comment",
"id": "Eve2",
"author": "Eve",
"replies": []
}
]
}
]
},
"expectedAuthorsBelow": [
{
"username": "Alice",
"displayNames": []
},
{
"username": "Bob",
"displayNames": [
"Bobby",
"Robert"
]
},
{
"username": "Eve",
"displayNames": []
}
],
"expectedThreadItemIdsBelow": [
"Eve1",
"Bob1",
"Bob2",
"Alice1",
"Bob3",
"Eve2"
]
}
]