node-tests: Update references to "private message" and "PM".

Updates any use of "private message" and "PM" in the `web/tests`
directory to instead use "direct messages".
This commit is contained in:
Lauryn Menard
2023-06-16 17:37:19 +02:00
committed by Tim Abbott
parent 7c47616ffa
commit 73e5812831
18 changed files with 79 additions and 65 deletions

View File

@@ -183,9 +183,10 @@ test("huddle_data.process_loaded_messages", () => {
{
type: "stream",
},
// direct message to myself
{
type: "private",
display_recipient: [{id: me.user_id}], // PM to myself
display_recipient: [{id: me.user_id}],
},
{
type: "private",
@@ -246,7 +247,7 @@ function buddy_list_add(user_id, $stub) {
$("#user_presences").set_find_results(sel, $stub);
}
test("PM_update_dom_counts", () => {
test("direct_message_update_dom_counts", () => {
const $count = $.create("alice-unread-count");
const pm_key = alice.user_id.toString();
const $li = $.create("alice stub");